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

feat: Implement conf.tasks_default_queues #1434

Merged

Conversation

sveneberth
Copy link
Member

@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__".

@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__"`.
@sveneberth sveneberth added the feature New feature or request label Feb 26, 2025
@sveneberth sveneberth added this to the ViUR-core v3.7 milestone Feb 26, 2025
@phorward phorward merged commit 9061fbd into viur-framework:main Feb 27, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

2 participants