Skip to content
Snippets Groups Projects
Commit a6730060 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[backend] Avoid double processing

parent 8ac7644f
No related branches found
No related tags found
1 merge request!194Scheduler
Pipeline #
......@@ -453,6 +453,8 @@ class Worker(models.Model):
# if we get to this point, then we launch the user process
subprocess.Popen(cmdline + [execute, str(split.pk)])
split.status = Job.PROCESSING #avoids re-running
split.save()
# cleans-up zombie processes that may linger
_cleanup_zombies()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment