Open sjs7007 opened 8 years ago
Maybe hashset to hasmap change and increment / decrement occurances.
If present > 0, else ==0. But still this leaves possibility of killing task on wrong machine with same pid.
hashmap : job_id -> pid
if job_id present, use corresponding pid else invalid.
For different machines maybe map of job_id -> (pid,machine) ?
Maybe hashset to hasmap change and increment / decrement occurances.
If present > 0, else ==0. But still this leaves possibility of killing task on wrong machine with same pid.