10000 fix: don't requeue step runs immediately by abelanger5 · Pull Request #582 · hatchet-dev/hatchet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix: don't requeue step runs immediately #582

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

Merged
merged 1 commit into from
Jun 12, 2024

Conversation

abelanger5
Copy link
Contributor

Description

When workflow runs sit in the queue for a long time, any step runs which are started are immediately requeued, because we only set requeueAfter in when the step run is first created. This is causing collisions in the AssignStepRunToWorker method.

This fix simply updates the requeueAfter time in the queueStepRun query, which occurs when the step run is placed into the PENDING_ASSIGNMENT state for the first time.

Type of change

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

Copy link
vercel bot commented Jun 12, 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 Jun 12, 2024 1:18pm

@abelanger5 abelanger5 merged commit 31b2fa1 into main Jun 12, 2024
25 checks passed
@abelanger5 abelanger5 deleted the belanger/fix-requeue-concurrent-writes branch June 12, 2024 13:49
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
0