misc: skip after jobs that have already been completed
This commit is contained in:
parent
86691534a6
commit
6dde68fbfa
|
@ -133,6 +133,8 @@ class HTTPResponse(quixote.http_response.HTTPResponse):
|
|||
return
|
||||
|
||||
for job, job_function in self.after_jobs:
|
||||
if job.completion_time:
|
||||
continue
|
||||
job.status = N_('running')
|
||||
if job.id:
|
||||
job.store()
|
||||
|
@ -147,4 +149,3 @@ class HTTPResponse(quixote.http_response.HTTPResponse):
|
|||
job.completion_time = time.time()
|
||||
if job.id:
|
||||
job.store()
|
||||
|
||||
|
|
Loading…
Reference in New Issue