pyramid_celery
pyramid_celery copied to clipboard
Support custom celeryconfig modules
I wanted to use this but had a custom celery config module, so I made this change to support it.
Coverage remained the same at 95.031% when pulling 9f93d2c4b947f086f0be029a06cc4c7abf172cd7 on phrfpeixoto:custom_celeryconfig into cf8aa80980e42f7235ad361874d3c35e19963b60 on sontek:master.
@phrfpeixoto Could you implement this a little differently:
- Keep
use_celeryconfig
as a boolean. - Introduce a new field
celery_config_module
(or a better name if you have one) and load it from there if set
So use_celeryconfig = true
+ celery_config_module = app.celeryconfig
would do what you want, otherwise without a module said it would use the default behavior
Will do.
@sontek Done.
Is this still relevant?