mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 15:35:55 +03:00
[GH-ISSUE #842] [QUESTION] Archived periodic tasks are not triggered on the scheduled run #2435
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#2435
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 @sgavinio on GitHub (Mar 14, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/842
Originally assigned to: @hibiken on GitHub.
Describe the issue
Hello 👋
When following the advise given here: https://github.com/hibiken/asynq/discussions/376 to specify a fixed task ID to avoid duplicate periodic tasks when having multiple scheduler instances, for example:
Periodic tasks that error out are simply moved to the
archivedstate and are never again triggered on the next schedule.I can confirm this doesn't happen if the
TaskID()option is not specified. Similar to the linked discussion above, we have the scheduler running together with the worker, and where we can have potentially any number of workers depending on the amount of available work.The only way I've managed to get the task to start again on the next schedule is to manually delete the task (i.e. remove it from archived so it can be re-enqueued again).
We write our background tasks to be completely idempotent so simply running a failed task on the next scheduled run is perfectly fine for us.
Would there be a way to skip the failed periodic tasks from going to
archived? It would be ideal if an option similar toRetention()exists (which as I understand only works forcompletedtasks) for archived tasks.@JeremyCraven commented on GitHub (Oct 26, 2024):
This would be really nice.
@exfly commented on GitHub (Nov 27, 2024):
Also encountered this problem. Can tasks that enter the achived state not be considered conflicts?
@kamikazechaser commented on GitHub (Dec 3, 2024):
What version are you on?
@JeremyCraven commented on GitHub (Dec 3, 2024):
I was encountering this on
v0.24.1@kamikazechaser commented on GitHub (Dec 4, 2024):
Could you try and repro it on v0.25.0?