conductor icon indicating copy to clipboard operation
conductor copied to clipboard

Feature Request - Executing a task in a loop

Open smkb80 opened this issue 9 years ago • 5 comments

Hi Team,

Is there any configuration which allows a task to be executed within a loop? If no, it would be nice to have one. E.g. a task receives a list of values as an input and gets executed for each value in the list.

smkb80 avatar Apr 07 '17 12:04 smkb80

@sameekb currently there is no such configuration. You can actually achieve this by not marking the task completed (IN_PROGRESS) and relying on an internal counter that produce as part of the task's output to mark it as completed after N number of attempts. But nothing out of the box as yet.

v1r3n avatar Apr 10 '17 19:04 v1r3n

It would indeed be really nice to support that.

We have a similar use case and repeating the task for each value in a list would be really helpful

picaron avatar Apr 20 '17 01:04 picaron

@sameekb: I had a similiar use case where @v1r3n helped me out.

One way to solve it could be using "Dynamic Fork Tasks". You could have a list of input values which one worker picks up and creates the needed JSON output for a subsequent "Dynamic Fork Task".

For more details, please see here https://github.com/Netflix/conductor/issues/30

blueelephants avatar Apr 22 '17 11:04 blueelephants

@blueelephants @v1r3n : Given the current situation, dynamically forking tasks is a viable alternative.

But there's a catch, more the no. of tasks, more is the management overhead from framework's point of view.

smkb80 avatar Apr 24 '17 05:04 smkb80

Closing this issue, as there is no activity for a while. Please feel free to open another issue if you still have questions.

kishorebanala avatar Jan 22 '19 00:01 kishorebanala