Commit 29073ca1 authored by Anael Beutot's avatar Anael Beutot
Browse files

Clean job cancelation API.

parent 9edcf921
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ class JobManager(object):

    def cancel(self, job_id):
        """Cancel a job."""
        self.jobs[job_id].running = False
        self.jobs[job_id].stop()

    def remove(self, job):
        return self.jobs.pop(job.id)