Project

General

Profile

Bug #10903

Updated by Tom Clegg almost 8 years ago

Add a confirmation dialog which includes text warning that all child jobs will be canceled as well. Child (and descendants) jobs will be canceled regardless of whether they're queued by another job/pipeline. 

 Extend the jobs#cancel API to accept a "cascade=true" parameter. 

 Extend the Job#cancel method to accept a "cascade: true" parameter. 

 If cascade: true is given, cancel any jobs listed in the job's components hash (subject to permissions), and propagate the cascade flag so an arbitrary number of generations of descendants can be cancelled. 

 Ensure the code cannot fall into an infinite loop or recursion (for example, make a test case where job A has job B in its components hash, and job B has job A in its components hash). 

 This is crunch1 only. Crunch2 already takes care of this. 

Back