mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #510] scheduler entries ttl maybe too short #2258
Labels
No labels
CLI
bug
designing
documentation
duplicate
enhancement
good first issue
good first issue
help wanted
idea
invalid
investigate
needs-more-info
performance
pr-welcome
pull-request
question
wontfix
work in progress
work in progress
work-around-available
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/asynq#2258
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xuyang2 on GitHub (Jul 8, 2022).
Original GitHub issue: https://github.com/hibiken/asynq/issues/510
Originally assigned to: @hibiken on GitHub.
Currently the tick interval of
Scheduler.runHeartbeater()and the ttl ofWriteSchedulerEntries()are both5*time.Secondscheduler entries is prone to expire when redis is slow to respond
Is it acceptable to increase the ttl of WriteSchedulerEntries() ?
github.com/hibiken/asynq@c70ff6a335/scheduler.go (L271)github.com/hibiken/asynq@c70ff6a335/scheduler.go (L302)@hibiken commented on GitHub (Jul 9, 2022):
@xuyang2 thank you for reporting this issue!
I agree. I think it makes sense to increase the TTL to 10s to allow for a miss in heartbeat.
@tschaub commented on GitHub (Jul 11, 2022):
I'm seeing behavior that looks like tasks are not getting scheduled. I'm having trouble putting together a reproducible test case - only seeing the issue in a production environment and not in tests or running locally. I'm wondering if this TTL issue or some other known issue might be responsible.
Are others seeing cases where tasks are sometimes not getting run or scheduled (no error from enqueue, but the handler is never called with the task)?
@lamhieo02 commented on GitHub (Jul 1, 2024):
Do you have a new version to handle this?