Skip to content
This repository has been archived by the owner on Jul 30, 2024. It is now read-only.

add squad-show-jobs #39

Merged
merged 1 commit into from
Apr 12, 2024

Conversation

roxell
Copy link
Collaborator

@roxell roxell commented Apr 12, 2024

This script show jobs that isn't fetched, that has job status 'Running', 'Scheduled' or 'Submitted'.
With this script its possible to cancel any of the jobs with that status. Filtering can be done by group, project, environment, job status and days. Days will list all jobs older than today - X days back, default 10.

@roxell roxell force-pushed the squad-show-and-cancel-non-fetched-jobs branch from dc5b362 to 70b6ee9 Compare April 12, 2024 12:50
@chaws
Copy link
Collaborator

chaws commented Apr 12, 2024

LGTM

One thing tho. Keep in mind that for LAVA jobs, they will still be queued for fetching after LAVA cancels them. This means that SQUAD won't know that they're cancelled until fetching. So might be worth it adding the following message after if args.cancel:

NOTE: LAVA jobs might take a while to show up as canceled in SQUAD

@roxell roxell force-pushed the squad-show-and-cancel-non-fetched-jobs branch from 70b6ee9 to cefdf3a Compare April 12, 2024 13:04
This script show jobs that isn't fetched, that has job status 'Running',
'Scheduled' or 'Submitted'.
With this script its possible to cancel any of the jobs with that
status. Filtering can be done by group, project, environment, job
status and days. Days will list all jobs older than today - X days
back, default 10.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
@roxell roxell force-pushed the squad-show-and-cancel-non-fetched-jobs branch from cefdf3a to e7bff9f Compare April 12, 2024 13:06
Copy link
Collaborator

@chaws chaws left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@roxell roxell merged commit 65dd537 into Linaro:master Apr 12, 2024
1 check passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants