Explorar el Código

Confirm task cancellation to conductor if process is not found.

Nashwan Azhari hace 5 años
padre
commit
ebc39af4c7
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      coriolis/worker/rpc/server.py

+ 2 - 0
coriolis/worker/rpc/server.py

@@ -132,6 +132,8 @@ class WorkerServerEndpoint(object):
                 "completed/error'd." % (
                 "completed/error'd." % (
                     process_id, task_id))
                     process_id, task_id))
             LOG.error(msg)
             LOG.error(msg)
+            self._rpc_conductor_client.confirm_task_cancellation(
+                ctxt, task_id, msg)
 
 
     def _handle_mp_log_events(self, p, mp_log_q):
     def _handle_mp_log_events(self, p, mp_log_q):
         while True:
         while True: