diff options
author | Thomas White <taw@physics.org> | 2020-09-01 11:31:42 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2020-09-01 11:31:42 +0200 |
commit | 4bed8bd2baa0aa7e126084db41c315843a19b566 (patch) | |
tree | 04ac8f69f4e2b865436c63b4c79a416e61ab6532 | |
parent | 85d85beda8d746aaf9f86303be5f0c9feff8e425 (diff) |
SLURM: Show error message if job can't be cancelled
-rw-r--r-- | src/gui_backend_slurm.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index 33e35959..586f1d0f 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -74,7 +74,10 @@ static void cancel_task(void *job_priv) struct slurm_job *job = job_priv; for ( i=0; i<job->n_blocks; i++) { STATUS("Stopping SLURM job %i\n", job->job_ids[i]); - slurm_kill_job(job->job_ids[i], SIGINT, 0); + if ( slurm_kill_job(job->job_ids[i], SIGINT, 0) ) { + ERROR("Couldn't stop job: %s\n", + slurm_strerror(slurm_get_errno())); + } } } |