Run same job over and over sequentially

22 views
Skip to first unread message

scott coverley

unread,
Jan 19, 2023, 7:24:40 AM1/19/23
to rundeck-discuss
Is it possible to run the same job over and over again indefinitely?

rac...@rundeck.com

unread,
Jan 19, 2023, 7:49:09 AM1/19/23
to rundeck-discuss
Hi Scott, yes.

You can set a schedule on your job to run indefinitely, e.g: every 5 seconds.

Create or edit a job, go to the "Schedule" tab, click on the "Schedule to run repeatedly? " radio button, then you can define the time (simply or using crontab quartz format).

Take a look at this.

Hope it helps!

scott coverley

unread,
Jan 20, 2023, 11:51:29 AM1/20/23
to rundeck-discuss
Is it possible to set the job to run only after the previous job has completed?

rac...@rundeck.com

unread,
Jan 20, 2023, 1:18:23 PM1/20/23
to rundeck-discuss
Hi Scott,

A good way could be:

1. Define the "loop job" as a scheduled job, then turn off the schedule.
2. Define the "launcher job" in this way: on the last step, you can add a script step enabling the schedule of the "loop job" via API (e.g: using curl) in an inline script.

Check this curl example of that API endpoint.

In that way, the "loop job" should start the indefinite executions only after the execution of the "launcher job".

Hope it helps!
Reply all
Reply to author
Forward
0 new messages