-
Notifications
You must be signed in to change notification settings - Fork 2.3k
WAIT Task inside DO_WHILE causing infinite task creation which are already completed #3876
Comments
Not able to replicate in orkes platform |
I debugged it by running line by line, attaching first lines as well
Oh sorry this is broken, I ran it in orkes platform, it went to same loop. I regret now, I should have been more careful. Can some one help ? |
And I definitely think it's something to do with the config, because I created same via UI and it worked completely fine. In orkes default cluster task limit was 1000, but this created 7552. I terminated the workflow. Otherwise it would have kept running. |
Issue Identified: This happens when task reference name has double underscore. Which means this will evaluate false. We should have validation when accepting taskReference names not to have double underscore on workflow definition or on the Start workflow API
TaskUtils.removeIterationFromTaskRefName(t.getReferenceTaskName()) Is the culprit as it tries to fetch the task id by splitting DELIMITER ie "__".
This leads to an infinite loop condition, creating infinite tasks |
Parsing name is not considering task ref name with double underscores - This is not fully fixing the use of this function. There needs to be some kind of validation against the user from setting up the taskRefName with double underscore
Fix: Netflix#3876 Update task utils: removeIterationFromTaskRefName
Describe the bug
While running the below workflow it goes into infinite loop
Details
Conductor version: 3.15.0
Persistence implementation: Postgres and MySQL
Queue implementation: MySQL and Postgres
Lock: Redis
Workflow definition:
Error in conductor server
To Reproduce
Just goto UI http://localhost:5000
Create the above task definition
Goto workbench
Just trigger this workflow
WARNING - This creates an Infinite loop situation only use this with local conductor setup which can be deleted
Expected behavior
Loop runs and waits for 20 seconds between loop
Screenshots
The workflow is stuck not moving forward.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: