Ejemplo n.º 1
0
 def resume(self, worker_id):
     status = Worker.get_worker_status(worker_id)
     if status != Worker.PAUSED:
         return
     Worker.set_worker_status(worker_id, Worker.BUSY)
     self.send(worker_id, MessageResume)
Ejemplo n.º 2
0
 def resume(self, worker_id):
     status = Worker.get_worker_status(worker_id)
     if status != Worker.PAUSED:
         return
     Worker.set_worker_status(worker_id, Worker.BUSY)
     self.send(worker_id, MessageResume)
Ejemplo n.º 3
0
 def pause(self, worker_id):
     status = Worker.get_worker_status(worker_id)
     if status != Worker.BUSY:
         return
     Worker.set_worker_status(worker_id, Worker.PAUSED)
     self.send(worker_id, MessagePause)
Ejemplo n.º 4
0
 def pause(self, worker_id):
     status = Worker.get_worker_status(worker_id)
     if status != Worker.BUSY:
         return
     Worker.set_worker_status(worker_id, Worker.PAUSED)
     self.send(worker_id, MessagePause)