misc: skip after jobs that have already been completed

This commit is contained in:
Frédéric Péters 2015-03-20 16:31:38 +01:00
parent 86691534a6
commit 6dde68fbfa
1 changed files with 2 additions and 1 deletions

View File

@ -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()