Update job status with set_status

main
VicarEscaped 9 years ago
parent a986c478d0
commit 01bd0cebd6

@ -592,7 +592,7 @@ class Worker(object):
result_ttl = job.get_result_ttl(self.default_result_ttl) result_ttl = job.get_result_ttl(self.default_result_ttl)
if result_ttl != 0: if result_ttl != 0:
job.ended_at = utcnow() job.ended_at = utcnow()
job._status = JobStatus.FINISHED job.set_status(JobStatus.FINISHED, pipeline=pipeline)
job.save(pipeline=pipeline) job.save(pipeline=pipeline)
finished_job_registry = FinishedJobRegistry(job.origin, self.connection) finished_job_registry = FinishedJobRegistry(job.origin, self.connection)

Loading…
Cancel
Save