The on_success, on_error and on_timeout callbacks are really useful (e.g. I intend to use them to store/show recent webhook deliveries to the customers, same way GitHub does).
I think it would be safe to enable them for the celery dispatcher if we look at Python's what can be pickled list:
- functions defined at the top level of a module
- built-in functions defined at the top level of a module
- classes that are defined at the top level of a module
- instances of such classes whose dict or the result of calling getstate() is picklable
I've done it myself and it's working fine, I've also fixed the corresponding tests (see the commit below). Would you consider merging the branch?
Thank you for your work!
The
on_success,on_errorandon_timeoutcallbacks are really useful (e.g. I intend to use them to store/show recent webhook deliveries to the customers, same way GitHub does).I think it would be safe to enable them for the celery dispatcher if we look at Python's what can be pickled list:
I've done it myself and it's working fine, I've also fixed the corresponding tests (see the commit below). Would you consider merging the branch?
Thank you for your work!