mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-26 07:25:56 +03:00
[GH-ISSUE #886] [FEATURE REQUEST] Unique option for run time of task #438
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#438
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 @agorman on GitHub (May 25, 2024).
Original GitHub issue: https://github.com/hibiken/asynq/issues/886
Originally assigned to: @hibiken on GitHub.
Is your feature request related to a problem? Please describe.
I'm running periodic tasks and I'd like the tasks to be unique until they are done running (reach completed or archived state). Currently the two options for uniqueness are hard to work with for this case. Choosing a time.Duration is difficult because the tasks may have vastly different run times. Making the task unique based on id is also difficult because I'd like to retain completed tasks for a given time for other reasons and if the task goes into archived state I'd have to manually remove it before the task runs again.
Describe the solution you'd like
I'd like a unique option that can be tied to the state of a task. Uniqueness would stop being checked if the task was in the archived or completed states.