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
feat: Adding --cluster-cancel and --cluster-cancel-nargs #1395
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot, very nice work! The Snakefile of your testcase is missing. Apart from that, a few requests below. And one "code smell" in the sonarcloud report.
5d739a4
to
a8bbbdf
Compare
Sorry for the many pushes but I had a hard time uncovering why the CI was failing and it was running locally (as so often, timing issues because of fewer cores in CI than in dev). I'm positive that this is ready for re-review 👓 🔍 🔬 |
dc9a871
to
be21d73
Compare
be21d73
to
39dab77
Compare
🎉 |
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent, awesome and clean work, as always!
* Remove the decode attributes of source files fix #1393 * Adding a test with report generation without md5sum check * Formatting with black * feat: Adding --cluster-cancel and --cluster-cancel-nargs (#1395) * Adding support for --cluster-[m]cancel * Adding support for --cluster-[m]cancel. * Adressing points from code review * [ci skip] fix typos Co-authored-by: Johannes Köster <johannes.koester@uni-due.de> Co-authored-by: Johannes Köster <johannes.koester@tu-dortmund.de> Co-authored-by: Manuel Holtgrewe <manuel.holtgrewe@bihealth.de> Co-authored-by: Johannes Köster <johannes.koester@uni-due.de>
Description
This PR adds the optional arguments
--cluster-cancel
and--cluster-mcancel
. The user can specify commands for terminating jobs by their job ID, either one at a time (--cluster-cancel
) or multiple at once (--cluster-mcancel
). Testing this was somewhat tricky because you have to simulate sentingSIGINT
to the job so I ended extendingtests/common.py
a bit.QC
docs/
) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities ofAddresses: #570