-
-
Notifications
You must be signed in to change notification settings - Fork 286
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RQ WorkerPool is not loading models at all #651
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
This issue is close to #650, but we are not in the same context.
I need my jobs to read/write models on database, so I've made a simple task to check that it's working.
When using a single worker, no issue, I can pass the id, or the object, without any issue.
python manage.py rqworker data-tasks notifications
But when I'm using a pool of 1 worker, then it seems that something is going wrong, the content of Django App is not loaded.
python manage.py rqworker-pool data-tasks notifications --num-workers 1
I've also tried to pass only the ID and get the object, then I've an error that is telling that
AbstractUser
cannot be loaded.So it seems to me that worker pool is missing something.
Thanks for your help,
The text was updated successfully, but these errors were encountered: