PennLINC / babs

BIDS App Bootstrap (BABS)
https://pennlinc-babs.readthedocs.io
MIT License
5 stars 5 forks source link

[FIX] add a function for deciding the command for job cancellation based on cluster system #134

Closed zhao-cy closed 1 year ago

zhao-cy commented 1 year ago

In this PR, I added a function get_cmd_cancel_job() to get the command for job cancellation. This is used when resubmitting a pending job. To cancel a job, SGE clusters use qdel <job_id>, whereas Slurm clusters use scancel <job_id>.

zhao-cy commented 1 year ago

I've tested these on MSI Slurm + CUBIC SGE clusters: