|
Lines 82-90
Link Here
|
| 82 |
|
82 |
|
| 83 |
/* Signal the job at the beginning of preemption GraceTime */ |
83 |
/* Signal the job at the beginning of preemption GraceTime */ |
| 84 |
job_signal(job_ptr, SIGCONT, 0, 0, 0); |
84 |
job_signal(job_ptr, SIGCONT, 0, 0, 0); |
| 85 |
job_signal(job_ptr, SIGTERM, 0, 0, 0); |
85 |
if ((job_ptr->warn_time) && (!(job_ptr->warn_flags & WARN_SENT)) ) |
|
|
86 |
{ |
| 87 |
|
| 88 |
debug("%s: preemption cancel warning signal %u to %pJ", |
| 89 |
__func__, job_ptr->warn_signal, job_ptr); |
| 90 |
job_signal(job_ptr, job_ptr->warn_signal, |
| 91 |
job_ptr->warn_flags, 0, false); |
| 92 |
} |
| 93 |
else { |
| 94 |
job_signal(job_ptr, SIGTERM, 0, 0, 0); |
| 95 |
} |
| 86 |
} |
96 |
} |
| 87 |
|
97 |
|
| 88 |
extern int slurm_job_check_grace(struct job_record *job_ptr, |
98 |
extern int slurm_job_check_grace(struct job_record *job_ptr, |
| 89 |
struct job_record *preemptor_ptr) |
99 |
struct job_record *preemptor_ptr) |
| 90 |
{ |
100 |
{ |