Hey,
After executing a job on Rundeck via the Rundeck node, is there a way to wait until the job is finished before moving on to the next node?
Currently the workflow just continues immediately after the job executes.
Hey,
After executing a job on Rundeck via the Rundeck node, is there a way to wait until the job is finished before moving on to the next node?
Currently the workflow just continues immediately after the job executes.
The way I have seen this done commonly in others’ workflows is a bit hacky, but does get the job done. Simply add a wait node for an amount of time that you are confident it will be completed in (if it’s normally <60 seconds, set it to 120 or 300) and then continue the workflow.
The more robust solution is naturally to set an environment variable such as complete
to 0
and then in a loop, wait 10 seconds (or whatever), hit an endpoint that checks on the status of the job, and, if done, change complete
to 1
and if not, repeat loop.