Do-While loop not working in v2.31.x #2186
Replies: 1 comment 3 replies
-
Hi Ketan, There are a couple of things which I think might be the reason.
Try the below sample workflow definition.
This workflow contains a DO_WHILE loop which iterates 10 times. In each iteration it would perform two tasks. For the first task, it would call an API i.e. HTTP task and for the second, it would perform a LAMBDA task. For both the tasks the inputs are taken from Workflow input and the output of the entire DO_WHILE task is set as the output of the workflow itself. To execute the workflow, try the below request.
The workflow should ideally get executed and the output of DO_WHILE task would be set as Workflow output. Thanks and Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi Team,
I am using Do-While loop task feature for looping over the tasks in my workflow and facing challenge while executing the workflow, do-while task remain in SCHEDULED state for some reason, not executing the loopOver tasks.
Here below is my workflow definition consisting of do-while task -
Workflow execution in conductor:
As you can see in above workflow execution, that do-while task is in SCHEDULED state. My use case here is to execute the lambda function and HTTP task as part of the do-while loop task. For now, I am just returning the iteration value from lambda task, which in turn I would like to use for my HTTP task to execute some http api as long as the loop returns true.
Could you please point out what am I doing wrong or missing here?
Thanks in advance.
Ketan
Beta Was this translation helpful? Give feedback.
All reactions