deb-mistral/mistral/tests/unit
Winson Chan 433d8e7e99 Fix with-items concurrency for sub-workflows
For with-items task that uses concurrency to execute subworkflows, the
remaining iterations after the first iteration will return the same item
on subworkflow completion. This bug does not affect with-items task that
executes action.

The bug is caused by a delay in the scheduling of workflow execution and
the creation of the execution record. For action execution, the record is
created within the same DB transaction prior to scheduling.

This patch creates the workflow execution record first just like for
action execution and then schedule a resume workflow.

Change-Id: Iba80068260caead9ae8f2f8f105abc5b9349db52
Closes-Bug: #1536415
2016-02-02 17:33:44 +00:00
..
actions Remove unused logging import 2016-01-15 12:42:47 +08:00
api Add task_execution_id to workflow execution in API 2016-01-20 03:24:17 +00:00
db Add db operations for resource members 2016-01-15 21:36:53 +13:00
engine Fix with-items concurrency for sub-workflows 2016-02-02 17:33:44 +00:00
services Merge "Remove unused logging import" 2016-01-15 10:14:22 +00:00
utils Move base.py and config.py under unit/ folder 2015-11-18 15:11:23 +03:00
workbook Remove unused logging import 2016-01-15 12:42:47 +08:00
workflow Remove unused logging import 2016-01-15 12:42:47 +08:00
__init__.py Fixed engine tests 2016-01-29 02:19:19 +00:00
base.py Add db operations for resource members 2016-01-15 21:36:53 +13:00
config.py Move base.py and config.py under unit/ folder 2015-11-18 15:11:23 +03:00
test_coordination.py Move base.py and config.py under unit/ folder 2015-11-18 15:11:23 +03:00
test_exception_base.py Move base.py and config.py under unit/ folder 2015-11-18 15:11:23 +03:00
test_expressions.py Move base.py and config.py under unit/ folder 2015-11-18 15:11:23 +03:00