[GH-ISSUE #688] [FEATURE REQUEST] when stopping asynq encounters a task that exceeds ShutdownTime, can the user determine whether to put it back into the queue #1357

Open
opened 2026-03-07 22:08:54 +03:00 by kerem · 1 comment
Owner

Originally created by @jiangbo202 on GitHub (Jul 20, 2023).
Original GitHub issue: https://github.com/hibiken/asynq/issues/688

Originally assigned to: @hibiken on GitHub.

I want to discard the tasks that are not closed when the timeout expires when I stop the asynq task, which means that the task will not be restarted when it is started next time.

So whether it can be made configurable, some tasks will be put back into the queue when they are closed and timed out, and some tasks will not be put back into the queue when they are closed and timed out.

I don't know if this idea is reasonable, just offering my thoughts

Originally created by @jiangbo202 on GitHub (Jul 20, 2023). Original GitHub issue: https://github.com/hibiken/asynq/issues/688 Originally assigned to: @hibiken on GitHub. I want to discard the tasks that are not closed when the timeout expires when I stop the asynq task, which means that the task will not be restarted when it is started next time. So whether it can be made configurable, some tasks will be put back into the queue when they are closed and timed out, and some tasks will not be put back into the queue when they are closed and timed out. I don't know if this idea is reasonable, just offering my thoughts
Author
Owner

@hibiken commented on GitHub (Jul 22, 2023):

@jiangbo202 Would you mind explaining what you mean by "Closing" a task?
When processing exceeds the deadline, the task should be back in the queue for retry.

<!-- gh-comment-id:1646598626 --> @hibiken commented on GitHub (Jul 22, 2023): @jiangbo202 Would you mind explaining what you mean by "Closing" a task? When processing exceeds the deadline, the task should be back in the queue for retry.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asynq#1357
No description provided.