Set job as finished when not working in async mode

main
Eduard Carreras 9 years ago
parent 84b711b5a5
commit c27a6434a8

@ -217,6 +217,7 @@ class Queue(object):
if not self._async: if not self._async:
job.perform() job.perform()
job.set_status(JobStatus.FINISHED)
job.save() job.save()
job.cleanup(DEFAULT_RESULT_TTL) job.cleanup(DEFAULT_RESULT_TTL)

Loading…
Cancel
Save