From c2fed0519cebec50b06071a0e78cb2268f6208a0 Mon Sep 17 00:00:00 2001 From: Igor Cherkaev Date: Wed, 5 May 2021 18:26:47 -0500 Subject: [PATCH] Process all with-items before stopping loop https://github.com/StackStorm/st2/issues/5029#issuecomment-681597872 > That restored the logic of > "process all items first, then transition to next task" > based on the condition defined in when. Originally in: https://github.com/igcherkaev/orquesta/commit/2baa66d33f53cb04b660b3ce284a52d478ecc528 --- orquesta/machines.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/orquesta/machines.py b/orquesta/machines.py index 55b41be0..99548006 100644 --- a/orquesta/machines.py +++ b/orquesta/machines.py @@ -303,7 +303,8 @@ events.ACTION_FAILED_TASK_DORMANT_ITEMS_PAUSED: statuses.FAILED, events.ACTION_FAILED_TASK_DORMANT_ITEMS_CANCELED: statuses.CANCELED, events.ACTION_FAILED_TASK_DORMANT_ITEMS_FAILED: statuses.FAILED, - events.ACTION_FAILED_TASK_DORMANT_ITEMS_INCOMPLETE: statuses.FAILED, + # events.ACTION_FAILED_TASK_DORMANT_ITEMS_INCOMPLETE: statuses.FAILED, + events.ACTION_FAILED_TASK_DORMANT_ITEMS_INCOMPLETE: statuses.RUNNING, events.ACTION_FAILED_TASK_DORMANT_ITEMS_COMPLETED: statuses.FAILED, events.ACTION_EXPIRED: statuses.FAILED, events.ACTION_EXPIRED_TASK_DORMANT_ITEMS_PAUSED: statuses.FAILED,