-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Implement
conf.tasks_default_queues
(#1434)
@CallDeferred tasks run in the Cloud Tasks Queue "default" by default. One way to run them in a different task queue is to use the `_queue` parameter when calling the task. However, as this is not possible for existing or low-hanging calls, default values can be defined here for each task. To do this, the task path must be mapped to the queue name: ``` conf.tasks_default_queues["updateRelations.viur.core.skeleton"] = "update_relations" ``` The queue (in the example: `"update_relations"`) must exist. The default queue can be changed by overwriting `"__default__"`.
- Loading branch information
1 parent
07b04b8
commit 9061fbd
Showing
2 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters