Bogdan Popa
Bogdan Popa
I'll cut a release this weekend.
Is the `DbConnectionsMiddleware` correctly configured in your app? Make sure it has a higher priority than the admin middleware (i.e. comes before it in the middleware list).
No, that setting should be fine (if a little inefficient). Re. the decoding error, are you using the Redis broker? If so, you should try upgrading to `dramatiq` [v1.11.0](https://github.com/Bogdanp/dramatiq/releases/tag/v1.11.0) which...
I'm really not sure what it could be. I would probably start by making sure the clean up code in the connections middleware runs at the right time and there's...
@ashleybartlett can you give #103 a try? As far as I can tell, `ready` should work fine and it does in a test app I created.
> Turns out my admin import was causing some task modules to be imported early Yeah, that sounds familiar. I think that may have been the reason for why the...
@ashleybartlett now that https://github.com/Bogdanp/django_dramatiq/pull/103 is merged, do you think this PR is still necessary?
Any chance you could make a minimal reproducible example? Hard to say w/o any code to look at.
The easiest way would be to turn on debug logging on the root logger. Before all your tests, you can add: ``` import logging logging.basicConfig(level=logging.DEBUG) ``` With that you should...
Are you doing any DB operations inside your tasks? Do you have the AdminMiddleware turned on? If so, maybe try turning it off and see if that helps.