-
-
Notifications
You must be signed in to change notification settings - Fork 296
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
Not enough values to unpack (expected 2, got 1) #314
Comments
Have you solved the problem? |
I see this issue when requeing a failed task via the admin panel. |
I figured, that when getting Task from db(IDK for cache), attr ipdb> Task.objects.get(id='3feb3f42b87740519bf2ca37245fbb51') == task # just created Task
True
ipdb> Task.objects.get(id='3feb3f42b87740519bf2ca37245fbb51').func
'<function send_email_message at 0x7f15d126a268>'
ipdb> task.func
<function send_email_message at 0x7f15d126a268>
ipdb> Task.objects.get(id='3feb3f42b87740519bf2ca37245fbb51').func == task.func
False
ipdb> hash(Task.objects.get(id='3feb3f42b87740519bf2ca37245fbb51'))
-3466111266535390795
ipdb> hash(task)
-3466111266535390795 |
@mm-matthias @bronte2k7 @nastyaDjo I fixed it: in task pass not function instance, but path to it as |
Digging into the source to see why 'users.emails.send_email_message' works and not 'send_email_message'. This is how the django q executes the task when a string is entered
|
Can confirm that like @mm-matthias I get this issue when resubmitting tasks in the admin panel. EDIT: If the task is initially submitted as a FULL string (with module path), as described by GodMode-On, admin functionality works. So to be clear, the bug here is that when using |
@GodMode-On thanks a lot, your solution works just fine :) |
…se so that resubmitting failed task works
…se so that resubmitting failed task works
Hello!
I faced with this problem when I try to run command python manage.py qcluster:
I use Python 3.7, Django 2.0.7
Can you help me with this issue?
The text was updated successfully, but these errors were encountered: