mirror of
https://github.com/hibiken/asynq.git
synced 2026-04-25 23:15:51 +03:00
[GH-ISSUE #139] [FEATURE REQUEST] Set default options for each task type in Client #40
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#40
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 @hibiken on GitHub (Apr 24, 2020).
Original GitHub issue: https://github.com/hibiken/asynq/issues/139
Originally assigned to: @hibiken on GitHub.
**Is your feature request related to a problem?
It's tedious and error-prone to specify Queue name as an
Optionwhen enqueuing a task.If a certain type of task needs to go into a specific queue, it's better to specify that once and not every time enqueueing that type of task.
This also applies to other options as well. It's more convenient and common to say
for this type of task, set timeout to be this duration, or
for this type of task, set unique TTL to be this duration.
Describe the solution you'd like
Add a method to
Clientto set default options for a type.Example:
Describe alternatives you've considered
None for now.
Additional context
Inspiration: Celery has a task routing configuration option.