Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

a command for terminating a whole job batch #128

Open
hantek opened this issue Apr 21, 2016 · 1 comment
Open

a command for terminating a whole job batch #128

hantek opened this issue Apr 21, 2016 · 1 comment

Comments

@hantek
Copy link

hantek commented Apr 21, 2016

Now we have qdel <job ID> which enables us to terminate a specified job, and qdel all to kill all jobs.

But when we have several job batchs running, each of which has a big number of jobs (say 100 for each job batch), it becomes inconvenient to kill all jobs in a specified job batch.

What we can do is to write a script somewhere in the repo that extracts all job IDs belonging to a specified job batch, and feed those job IDs into qdel. And when we use it, we just need to type something like

     smart_dispatch --killjobbatch <job batch id>
@MarcCote
Copy link
Member

MarcCote commented Apr 22, 2016

Thank you for letting us know about useful features smart-dispatch should have.
Right now, the job IDs are stored in SMART_DISPATCH_LOGS/{job_name}/job_ids.txt, so it should not be to hard to write a script that parses the file and call qdel on each.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants