Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WFQ Tests & Utilities #641

Merged
merged 6 commits into from
Oct 9, 2024
Merged

WFQ Tests & Utilities #641

merged 6 commits into from
Oct 9, 2024

Conversation

chuck-dbos
Copy link
Collaborator

Move queue check code into system DB
A way to intercept code at various places during test and recreate scenarios that may depend on timing holes.

@chuck-dbos chuck-dbos marked this pull request as ready for review October 7, 2024 22:58
@@ -676,6 +677,7 @@ export class DBOSExecutor implements DBOSExecutorContext {
) {
// TODO: Make this transactional (and with the queue step below)
args = await this.systemDatabase.initWorkflowStatus(internalStatus, args);
await debugTriggerPoint(DEBUG_TRIGGER_WORKFLOW_ENQUEUE);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder if this will add overhead to non-debug production workloads? If so, can we disable this in prod?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be extremely surprised if the overhead is measurable.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case, where it is against several database updates, I agree. However, disabling in prod is not a bad idea.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could get it down to a boolean check pretty easily. But we can do it later.

@chuck-dbos chuck-dbos merged commit d577edd into main Oct 9, 2024
2 checks passed
@chuck-dbos chuck-dbos deleted the chuck/debugpoint branch October 9, 2024 11:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants