Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE REQUEST] Unique option for run time of task #886

Open
agorman opened this issue May 25, 2024 · 0 comments
Open

[FEATURE REQUEST] Unique option for run time of task #886

agorman opened this issue May 25, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@agorman
Copy link

agorman commented May 25, 2024

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.

@agorman agorman added the enhancement New feature or request label May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants