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

fix: race condition in dispatcher with fast resubscribe #414

Merged
merged 1 commit into from
Apr 23, 2024

Conversation

abelanger5
Copy link
Contributor

Description

There's a race condition due to the use of defer in the Listen and ListenV2 methods where workers are deleted after the client resubscribes.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Copy link

vercel bot commented Apr 23, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hatchet-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 23, 2024 10:04pm

@abelanger5 abelanger5 changed the title fix: race condiion in dispatcher with fast resubscribe fix: race condition in dispatcher with fast resubscribe Apr 23, 2024
@abelanger5 abelanger5 merged commit 1786c0e into main Apr 23, 2024
19 checks passed
@abelanger5 abelanger5 deleted the belanger/dispatcher-race branch April 23, 2024 22:27
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.

None yet

1 participant