Fix state change on exception during task state change
If there is an exception during on_task_state_change, particularly if
there is a YAQL evaluation error in the input of the next task, the state
of the current task and related action execution will be marked ERROR for
sync task and rolled back for async task, leaving the task as orphaned in
RUNNING state in most cases. This is a workflow handling error and the
workflow execution state is already marked ERROR. The state of the current
task execution should not be affected.
Reviewed: https:/ /review. openstack. org/239793 /git.openstack. org/cgit/ openstack/ mistral/ commit/ ?id=93b19335f59 92f74ac0edcd4f9 5c0ad06d101b74
Committed: https:/
Submitter: Jenkins
Branch: master
commit 93b19335f5992f7 4ac0edcd4f95c0a d06d101b74
Author: Winson Chan <email address hidden>
Date: Wed Oct 28 02:18:22 2015 +0000
Fix state change on exception during task state change
If there is an exception during on_task_ state_change, particularly if
there is a YAQL evaluation error in the input of the next task, the state
of the current task and related action execution will be marked ERROR for
sync task and rolled back for async task, leaving the task as orphaned in
RUNNING state in most cases. This is a workflow handling error and the
workflow execution state is already marked ERROR. The state of the current
task execution should not be affected.
Change-Id: Id28b0661c09efa 80a666d9eb7606f b435641a989
Closes-Bug: #1510738