mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #1055] [QUESTION] Does periodic task with the asynq.taskID option lock subsequent schedules? #506
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#506
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 @brunocasado on GitHub (Jun 6, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1055
Hi there,
i have a scheduled task like this:
This is causing this task to run only once.
I saw that this task was archived due to an issue, and since then, this task hasn't been scheduled anymore. As soon as I removed it from the archive, the task was scheduled again. It ran without any issues, but then it stopped being scheduled again.
After I removed the asynq.TaskID, everything started working normally.
Is this a bug or the fact i am setting a hard coded task id is causing this?
thanks in advance
@gaomujin commented on GitHub (Sep 18, 2025):
I guess it's because tasks with TaskID are unique, including those that are archived.
@RychEmrycho commented on GitHub (Dec 11, 2025):
its by design. asynq will ensure that there's only a task with the given ID lives in the queue. only after the task is removed from the queue (either due to force deletion or completed without retention), then you can enqueue another task with the same ID.