Kaynağa Gözat

Warn for cancellation confirmation for non-CANCELLING tasks.

Nashwan Azhari 6 yıl önce
ebeveyn
işleme
7560d73735
1 değiştirilmiş dosya ile 5 ekleme ve 0 silme
  1. 5 0
      coriolis/conductor/rpc/server.py

+ 5 - 0
coriolis/conductor/rpc/server.py

@@ -2053,6 +2053,11 @@ class ConductorServerEndpoint(object):
                 "task '%s' (status '%s') from host '%s'. NOT modifying "
                 "task '%s' (status '%s') from host '%s'. NOT modifying "
                 "its status.", task.id, task.status, task.host)
                 "its status.", task.id, task.status, task.host)
             final_status = task.status
             final_status = task.status
+        else:
+            LOG.warn(
+                "Received confirmation of cancellation for non-CANCELLING "
+                "task '%s' (status '%s'). Marking as '%s' anyway.",
+                task.id, task.status. final_status)
 
 
         if final_status == task.status:
         if final_status == task.status:
             LOG.debug(
             LOG.debug(