-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix celery configuration not being applied sometimes
The module dispatching the celery tasks did not import our celery worker module, which resulted in the celery configuration not being applied in some cases, e.g. when using uvicorn's hot reload functionality. By referencing the celery tasks directly, we make sure that the celery config used for defining the tasks is also used for dispatching them. See https://docs.celeryq.dev/en/stable/userguide/application.html#breaking-the-chain for more information.
- Loading branch information
1 parent
02880dd
commit 7fc48f1
Showing
1 changed file
with
17 additions
and
42 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