Skip to content

fix: skip RetryWait for new tasks in scheduler (#459)#460

Merged
frrist merged 1 commit intomainfrom
frrist/fix/task-retry-delay
Mar 26, 2026
Merged

fix: skip RetryWait for new tasks in scheduler (#459)#460
frrist merged 1 commit intomainfrom
frrist/fix/task-retry-delay

Conversation

@frrist
Copy link
Copy Markdown
Member

@frrist frrist commented Mar 24, 2026

The scheduler was applying RetryWait to all tasks, including brand-new ones with Retries=0. This caused every SendTransaction task to wait 5 minutes before being picked up, even though it had never been attempted.

The fix checks Retries==0 to identify new tasks and picks them up immediately, only applying RetryWait to tasks that have actually failed and are being retried.

closes #459

The scheduler was applying RetryWait to all tasks, including brand-new
ones with Retries=0. This caused every SendTransaction task to wait 5
minutes before being picked up, even though it had never been attempted.

The fix checks Retries==0 to identify new tasks and picks them up
immediately, only applying RetryWait to tasks that have actually failed
and are being retried.
@frrist frrist requested a review from alanshaw as a code owner March 24, 2026 20:18
@frrist frrist self-assigned this Mar 24, 2026
@frrist frrist merged commit f14d0ea into main Mar 26, 2026
10 checks passed
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.

Scheduler applies RetryWait to new tasks, causing unnecessary delays

2 participants