Comment 5 for bug 1524477

Revision history for this message
Moshe Elisha (melisha) wrote : Re: on-complete tasks are ran multiple times on workflow resume

This bug can also be easily reproduced with the following workflow:

---
version: '2.0'

test_on_after_task_parallel_wf:
  tasks:
    task1:
      action: std.noop
      on-complete:
        - task1_a

    task2:
      action: std.noop

    task3:
      action: std.noop

    task1_a:
      action: std.noop

stack@melisha-devstack mistral(keystone_admin)]$ mistral task-list
+--------------------------------------+---------+--------------------------------+--------------------------------------+---------+------------+
| ID | Name | Workflow name | Execution ID | State | State info |
+--------------------------------------+---------+--------------------------------+--------------------------------------+---------+------------+
| 5992e46c-2310-46a2-b3f8-f3cf1dd4da14 | task1 | test_on_after_task_parallel_wf | 6f206afe-eca2-469e-ab2f-5b02998105bd | SUCCESS | None |
| ba19ed74-9e60-4278-a349-07b9b4afb49c | task3 | test_on_after_task_parallel_wf | 6f206afe-eca2-469e-ab2f-5b02998105bd | SUCCESS | None |
| d158b3ef-1f59-4fa3-bfea-7a5f3bd59a4b | task2 | test_on_after_task_parallel_wf | 6f206afe-eca2-469e-ab2f-5b02998105bd | SUCCESS | None |
| 96ac0ec5-eede-479d-8da4-7ad5a1123f5b | task1_a | test_on_after_task_parallel_wf | 6f206afe-eca2-469e-ab2f-5b02998105bd | SUCCESS | None |
| f20419a5-8ae9-4aae-b854-51b78d4e680b | task1_a | test_on_after_task_parallel_wf | 6f206afe-eca2-469e-ab2f-5b02998105bd | SUCCESS | None |
| c0a7c7ee-34e1-4040-aea2-72ab45786d07 | task1_a | test_on_after_task_parallel_wf | 6f206afe-eca2-469e-ab2f-5b02998105bd | RUNNING | None |
+--------------------------------------+---------+--------------------------------+--------------------------------------+---------+------------+