diff options
Diffstat (limited to 'src/gui_backend_slurm.c')
-rw-r--r-- | src/gui_backend_slurm.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui_backend_slurm.c b/src/gui_backend_slurm.c index 92adc391..33e35959 100644 --- a/src/gui_backend_slurm.c +++ b/src/gui_backend_slurm.c @@ -70,7 +70,12 @@ static int get_task_status(void *job_priv, static void cancel_task(void *job_priv) { - //struct slurm_job *job = job_priv; + int i; + 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); + } } |