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

Remove RETRIES_EXCEEDED Workflows From Queues Table #158

Merged
merged 1 commit into from
Nov 21, 2024
Merged

Conversation

kraftp
Copy link
Member

@kraftp kraftp commented Nov 19, 2024

If an enqueued workflow enters the dead letter queue (RETRIES_EXCEEDED), it remains in the workflow_queue table forever, potentially blocking the dequeuing of later workflows. This PR removes DLQ'ed workflows from the workflow_queue table, unblocking the queue.

regular_handle = queue.enqueue(regular_workflow)

with pytest.raises(Exception) as exc_info:
DBOS.recover_pending_workflows()
Copy link
Member

Choose a reason for hiding this comment

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

I'm not sure if recover pending workflows should throw an error... It could be solved in a separate PR, but if we throw an error, then no other workflows can be recovered correctly.

Copy link
Member Author

Choose a reason for hiding this comment

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

We can resolve this separately

@kraftp kraftp merged commit 38db10c into main Nov 21, 2024
5 checks passed
@kraftp kraftp deleted the kraftp/fix-dlq branch November 21, 2024 21:29
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.

2 participants