Skip to content
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

Error after New delivery task button pressed #446

davidkrcil opened this issue Apr 19, 2018 · 1 comment · Fixed by #499


Copy link

commented Apr 19, 2018

This I get when press New delivery task button

{"error": 500, "message": "CommunicationPreference matching query does not exist.", "traceback": "Traceback (most recent call last):\n File "/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/jsonview/", line 74, in _wrapped\n ret = f(request, *a, **kw)\n File "/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/django/contrib/auth/", line 23, in _wrapped_view\n return view_func(request, *args, **kwargs)\n File "/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/orchestra/", line 127, in new_task_assignment\n task_assignment = get_new_task_assignment(worker, task_status)\n File "/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/orchestra/utils/", line 750, in get_new_task_assignment\n task = assign_task(,\n File "/usr/local/Cellar/python3/3.6.1/Frameworks/Python.framework/Versions/3.6/lib/python3.6/", line 53, in inner\n return func(*args, **kwds)\n File "/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/orchestra/utils/", line 249, in assign_task\n notify_status_change(task, previous_status)\n File "/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/orchestra/utils/", line 98, in notify_status_change\n **message_info)\n File
"/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/orchestra/communication/", line 22, in send_mail\n email for email in recipient_list\n File "/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/orchestra/communication/", line 23, in \n if _can_email(communication_type, email)\n File "/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/orchestra/communication/", line 53, in _can_email\n communication_type=communication_type\n File "/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/django/db/models/", line 85, in manager_method\n return getattr(self.get_queryset(), name)(*args, **kwargs)\n File "/Users/davidkrcil/PycharmProjects/orchestraAgain/venv/lib/python3.6/site-packages/django/db/models/", line 380, in get\n self.model._meta.object_name\norchestra.models.communication.models.DoesNotExist: CommunicationPreference matching query does not exist.\n"}


This comment has been minimized.

Copy link

commented Aug 9, 2018

You need to fill up any of your workers' communication preferences under the django admin board.

Perhaps future versions can remove the necessity of this feature before workers are able to receive any tasks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.