You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a django app with celery once and if a task is already queued, I dont want to raise an exception, so I want to add graceful option to the task.
Now, I want that config for all the tasks that I have written, so that I dont have to specify that config evertytime.
So I can override this in the following places -
* At the apply_async call level
* When I am defining the once property for my task
The problems I think will arise with respect to maintenance -
* I have to do that for all the tasks I have coded
* Since I will have to override the entire once object, in the future, if any defaults are added by the package maintainers, it will be overwritten.
I want to override it at the config.ONCE level so that I can just add it to the app.
I was looking at timeout, and I see something like this-
I am writing a django app with celery once and if a task is already queued, I dont want to raise an exception, so I want to add graceful option to the task.
Now, I want that config for all the tasks that I have written, so that I dont have to specify that config evertytime.
From the code,
So I can override this in the following places -
* At the apply_async call level
* When I am defining the
once
property for my taskThe problems I think will arise with respect to maintenance -
* I have to do that for all the tasks I have coded
* Since I will have to override the entire
once
object, in the future, if any defaults are added by the package maintainers, it will be overwritten.I want to override it at the config.ONCE level so that I can just add it to the app.
I was looking at timeout, and I see something like this-
So, what I want to do is something like
in the app, have a property for graceful
Then overwrite it during apply_Async from the property as default. This will help anyone override the graceful config at app level
Let me know yuour thoughts
The text was updated successfully, but these errors were encountered: