[GH-ISSUE #1050] [FEATURE REQUEST] Option to cancel or replace unique tasks #2525

Open
opened 2026-03-15 20:47:23 +03:00 by kerem · 1 comment
Owner

Originally created by @iwyg on GitHub (May 21, 2025).
Original GitHub issue: https://github.com/hibiken/asynq/issues/1050

Originally assigned to: @hibiken, @kamikazechaser on GitHub.

Is your feature request related to a problem? Please describe.
I'm encountering a scenario, where it would be preferable to replace enqueued unique task (by taskID or uniqueness) that haven't been processed yet. This could be useful if e.g. preconditions changed and a task should be updated with said preconditions

Describe the solution you'd like
You could add a new task option to declare unique tasks replaceable, so that an existing unique task would be replaced with a newer one instead of the new task being rejected

Originally created by @iwyg on GitHub (May 21, 2025). Original GitHub issue: https://github.com/hibiken/asynq/issues/1050 Originally assigned to: @hibiken, @kamikazechaser on GitHub. **Is your feature request related to a problem? Please describe.** I'm encountering a scenario, where it would be preferable to replace enqueued unique task (by taskID or uniqueness) that haven't been processed yet. This could be useful if e.g. preconditions changed and a task should be updated with said preconditions **Describe the solution you'd like** You could add a new task option to declare unique tasks replaceable, so that an existing unique task would be replaced with a newer one instead of the new task being rejected
Author
Owner

@kamikazechaser commented on GitHub (May 22, 2025):

Related to #568

<!-- gh-comment-id:2901247674 --> @kamikazechaser commented on GitHub (May 22, 2025): Related to #568
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#2525
No description provided.