Closed kcleong closed 1 year ago
From what I could gather from a quick debug is that django_dramatiq.apps.DjangoDramatiqConfig.ready()
collects the middleware options defined in DRAMATIQ_BROKER['MIDDLEWARE']
. However in django.apps.registry:app_config.import_models()
the check is triggered (which raises the error) before the dramatiq middleware can be initialized.
Hey @kcleong ! We possibly fixed this issue in the current master branch. May I ask you to try and see if it works for you? Meanwhile, I will release a new version 0.11.1 containing the fix this week.
Best, Rust
@amureki thanks for your quick reply. I tried the latest master
branch and indeed the error does not occur. :)
@amureki thanks for your quick reply. I tried the latest
master
branch and indeed the error does not occur. :)
That's great! Thanks for the confirmation! Then indeed I'll release it soon. 👍
I tried upgrading
django_dramatiq
from version0.10.0
to0.11.0
in a working Django + dramatiq + periodiq set-up.Python
3.10.4
is used, with the followingrequirements.txt
:Django config:
I get the following error
ValueError: The following actor options are undefined: periodic. Did you forget to add a middleware to your Broker?
. Full stack trace available here: https://gist.github.com/kcleong/aded0ca16dfd56304d3774babf4b8471If I downgrade
django_dramatiq
to version0.10.0
the error disapears.