deb-mistral/mistral
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 Add support for OpenStack Swift actions 2016-01-11 08:29:48 -05:00
api Fix with-items concurrency for sub-workflows 2016-02-02 17:33:44 +00:00
cmd Fix all H405 pep8 errors 2015-11-16 18:00:18 +03: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
hacking Drop use of 'oslo' namespace package 2015-07-14 06:25:24 +00:00
resources Fixing std.create_instance workflow 2015-09-23 11:30:43 +03:00
services Fix with-items concurrency for sub-workflows 2016-02-02 17:33:44 +00:00
tests Fix with-items concurrency for sub-workflows 2016-02-02 17:33:44 +00:00
utils Improve error message for YAQL task function 2015-11-29 13:40:23 +00:00
workbook Workflow name can not be in the format of UUID 2015-12-15 14:51:40 +08:00
workflow Fix with-items concurrency for sub-workflows 2016-02-02 17:33:44 +00:00
__init__.py Remove eventlet monkey patch in mistral __init__ 2015-02-20 07:49:56 +00:00
config.py Numerous debug messages due to iso8601 log level 2015-12-08 21:52:23 +01:00
context.py Delivering error message via header in pecan.abort 2015-10-08 08:43:16 +00:00
coordination.py Raise user-friendly exception in case of connection failed 2015-08-19 10:40:43 +08:00
exceptions.py Support action_execution deletion 2015-09-07 13:18:41 +00:00
expressions.py Replace copy.copy with copy.deepcopy 2015-10-07 19:55:31 +00:00
version.py Adjusting all license headers in python files so they look the same 2013-12-30 13:27:06 +07:00