deb-mistral/mistral/services
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 Added periodic events 2013-12-05 19:01:22 +04:00
action_manager.py Merge "Adding callback url to action context" 2015-11-18 09:51:27 +00:00
actions.py Wrap sync_db operations in transactions 2015-11-16 15:33:02 +00:00
executions.py Fix with-items concurrency for sub-workflows 2016-02-02 17:33:44 +00:00
expiration_policy.py Avoid comparision between "None" type and "int" type. 2015-10-27 12:54:36 +05:30
periodic.py Ensure only one WF execution for every CT cycle 2015-11-16 21:56:54 +00:00
scheduler.py Fixing execution saved in wrong tenant 2015-12-08 15:54:03 +00:00
security.py Fixed lack of context for triggers 2015-08-19 13:32:59 +03:00
triggers.py Support workflow UUID when creating cron trigger 2016-01-09 11:36:40 +08:00
workbooks.py Action definition updated, when workbook is created. 2015-10-14 04:29:59 +00:00
workflows.py Allow env update on resume and rerun workflows 2016-01-11 20:52:48 +00:00