deb-mistral/mistral/workflow
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
..
__init__.py Initial commit for the new engine 2014-08-06 16:24:26 +07:00
base.py Allow env update on resume and rerun workflows 2016-01-11 20:52:48 +00:00
commands.py Adding validation of workflow graph 2015-09-17 11:57:42 +00:00
data_flow.py Result will be [], if list for with-items is empty. 2015-11-30 09:25:58 +00:00
direct_workflow.py Allow env update on resume and rerun workflows 2016-01-11 20:52:48 +00:00
reverse_workflow.py Allow env update on resume and rerun workflows 2016-01-11 20:52:48 +00:00
states.py Fix with-items concurrency for sub-workflows 2016-02-02 17:33:44 +00:00
utils.py Fix state_info details for with-items task error 2015-12-04 05:19:11 +00:00
with_items.py Fix with-items concurrency for sub-workflows 2016-02-02 17:33:44 +00:00