Skip to content
Snippets Groups Projects
Commit 0587d9ff authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Merge branch '747-taskuserassignment-matching-query-does-not-exist' into 'master'

Resolve "TaskUserAssignment matching query does not exist."

Closes #747

See merge request !1118
parents dd746d75 e7e9ede7
No related branches found
No related tags found
1 merge request!1118Resolve "TaskUserAssignment matching query does not exist."
Pipeline #99846 passed with warnings
Pipeline: AlekSIS

#99853

    ......@@ -23,6 +23,8 @@ Changed
    Fixed
    ~~~~~
    * The system tried to send notifications for done background tasks
    in addition to tasks started in the foreground.
    * Invitations for existing short name did not work.
    * Invitations for persons without pre-defined e-mail address did not behave correctly
    ......
    ......@@ -66,6 +66,11 @@ def send_notification_for_done_task(task_id):
    # Wait five seconds to ensure that the client has received the final status
    time.sleep(5)
    assignment = TaskUserAssignment.objects.get(task_result__task_id=task_id)
    try:
    assignment = TaskUserAssignment.objects.get(task_result__task_id=task_id)
    except TaskUserAssignment.DoesNotExist:
    # No foreground task
    return
    if not assignment.result_fetched:
    assignment.create_notification()
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment