Loading ccserver/jobs.py +4 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,10 @@ class BaseJob(dict, Thread, object): the job. ''' if self['done']: raise JobError('Job is done') if self['cancelled']: raise JobError('Job is already cancelled') self['cancelled'] = True self.report('cancelling') Loading Loading
ccserver/jobs.py +4 −0 Original line number Diff line number Diff line Loading @@ -151,6 +151,10 @@ class BaseJob(dict, Thread, object): the job. ''' if self['done']: raise JobError('Job is done') if self['cancelled']: raise JobError('Job is already cancelled') self['cancelled'] = True self.report('cancelling') Loading