Running templates in parallel using a workflow template

Hi there !

I am trying to run several templates simultaneously using a Workflow Template but at this moment, is not working.

So, my question is. Is it possible to run several templates simultaneously from a Workflow?

Here you can see how I configured my workflow.

https://lh3.googleusercontent.com/-E597SSEoMiA/WwKopKogykI/AAAAAAAADj0/EAZi6iCzbr0YX0NZLqFfaTF0ds3geqwVwCLcBGAs/s1600/Screen%2BShot%2B2018-05-21%2Bat%2B13.06.25.png

Thanks in advance.

Cheers,
Jose

Hi Jose,

We recently added support for running concurrent jobs, and you can enable this feature in the UI by navigating to the workflow form and checking the “Enable Concurrent Jobs” checkbox and click Save.

Hope this helps!

nrk,

All Job Templates used in a Workflow Job Templates must have the check box “Enable Concurrent Jobs” checked.

For example, if you have a Workflow Job Template with 3 of the same Job Templates and “Enable Concurrent Jobs” is NOT checked, they will, effectively, be executed serial (one at a time). If you, however, check the “Enable Concurrent Jobs” for the single Job Template, then they will be capable of running in parallel. Note that the jobs MAY not run at the same time due to system capacity constraints.

Hello Christopher,

Thanks for you response. Just to clarify, my Workflow Template is running different Job Templates. So, from my understanding, the concurrent jobs is not necessary because I am not running the same job. However, I tried to check the “Enable Concurrent Jobs” in my workflow template and after save, the option is unchecked again automatically.

I am running only 2 job templates over 4 hosts, I think that there is no issues with my server specs. 8GB RAM, 4 CPUs.

I saw, if I leave the “forks” to default in my job templates, the jobs are executed one by one in the workflow template. If I set the forks to 1 in all my job templates and I execute the workflow template, it seems to be parallelized.

Cheers,
nrk

nrk,

I see the same behavior in my setup: the checkbox is cleared after Save. Were you able to confirm that the check at the Workflow level is “optional”?

Hmm, this might be a UI bug. You can observe the actual state of the field in the API. You can also change the state of what we call “allow_simultaneous” on the workflow job template via the API. I’ve attached a gif of how this can be done. Let me know if this works for you!

(attachments)

Try 2 at attaching/injecting an animated gif. Also linking to external gif in case it’s a file size limit thing https://i.makeagif.com/media/8-01-2018/UQXr94.gif

(attachments)

Yes, I noticed the flag was set on a Job API response for the Template, so I figured the feature was working. Thank you for confirming, Christopher.