diff --git a/lib/jqueue.py b/lib/jqueue.py index 2927b2a37514244f1b2ec53718e27f15670469e2..5a352914aa77ea14557414f17f70276327434c1b 100644 --- a/lib/jqueue.py +++ b/lib/jqueue.py @@ -411,6 +411,13 @@ class _QueuedJob(object): not_marked = False def Cancel(self): + """Marks job as canceled/-ing if possible. + + @rtype: tuple; (bool, string) + @return: Boolean describing whether job was successfully canceled or marked + as canceling and a text message + + """ status = self.CalcStatus() if status not in (constants.JOB_STATUS_QUEUED,