fix resume_job function, the job was not able to resume because the job stop_requested value was not reset.

This commit is contained in:
Daniel Bicho 2017-10-12 19:21:13 +01:00
parent 554dbe821b
commit 36e323c942

View File

@ -249,6 +249,7 @@ class RethinkDbFrontier:
def resume_job(self, job): def resume_job(self, job):
job.status = "ACTIVE" job.status = "ACTIVE"
job.stop_requested = None
job.starts_and_stops.append( job.starts_and_stops.append(
{"start":doublethink.utcnow(), "stop":None}) {"start":doublethink.utcnow(), "stop":None})
job.save() job.save()