On my Rundeck there are multiple projects and jobs under these projects are triggered by schedule and some run for a a few minutes to an hour.
I want to restart the rundeck server to apply some configuration changes without having to affect these jobs so I want to know if there are any currently running jobs from each projects.
I know I can manually go through each project and check each running job but i want to see all of it at once.
Is this possible?
In case it's still relevant:
You can either query the DB directly: H2/internal or external wherever you've put it.
Or using the API (simply list all projects and query for each one the running jobs.
It can be done using the CLI with something like:
for i in $(rd projects list | grep -v ^#); do
rd executions list -p $i;
done
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With