Explorar o código

Merged in aznashwan/coriolis-core/cleanup-workdir (pull request #108)

Always remove task work dir on Exception.
Nashwan Azhari %!s(int64=8) %!d(string=hai) anos
pai
achega
83caa4741f
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      coriolis/worker/rpc/server.py

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

@@ -163,6 +163,7 @@ class WorkerServerEndpoint(object):
                                                       new_task_info)
         except Exception as ex:
             LOG.exception(ex)
+            self._check_remove_dir(export_path)
             self._rpc_conductor_client.set_task_error(ctxt, task_id, str(ex))
         finally:
             if not retain_export_path: