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

Always use barrier #2

Merged
merged 6 commits into from
Dec 20, 2024
Merged

Always use barrier #2

merged 6 commits into from
Dec 20, 2024

Conversation

pencil
Copy link
Contributor

@pencil pencil commented Dec 20, 2024

Previously, we skipped creating a barrier when only one task was required to complete before continuing the workflow. However, this sometimes led to duplicate tasks when a task in a Chain was (incorrectly) retried after already having completed previously. To alleviate this, we now always create an AtMostOnce barrier, even if we only await the completion of a single task.

I also added a bit of documentation about the custom barrier implementation and a way to switch to the more lenient default Barrier implementation of dramatiq.

@pencil pencil requested review from mchl-hess and dan-woz December 20, 2024 00:02
@pencil pencil merged commit 1270dd4 into main Dec 20, 2024
7 checks passed
@pencil pencil deleted the always-use-barrier branch December 20, 2024 21:16
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