DRTauli
DRTauli

Reputation: 771

Show all Currently Running Jobs for all Projects in Rundeck

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?

Upvotes: 6

Views: 2635

Answers (2)

Atanas
Atanas

Reputation: 21

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

Upvotes: 2

user1982813
user1982813

Reputation: 11

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.

Upvotes: 1

Related Questions