Просмотр исходного кода

Remove redundant task dependency

The replica source inputs validation task does not
need anything from the get instance info task.

Thus, the tasks dependency is redundant.
Ionut Balutoiu 6 лет назад
Родитель
Сommit
7a9d077533
1 измененных файлов с 1 добавлено и 2 удалено
  1. 1 2
      coriolis/conductor/rpc/server.py

+ 1 - 2
coriolis/conductor/rpc/server.py

@@ -323,8 +323,7 @@ class ConductorServerEndpoint(object):
             validate_replica_source_inputs_task = self._create_task(
             validate_replica_source_inputs_task = self._create_task(
                 instance,
                 instance,
                 constants.TASK_TYPE_VALIDATE_REPLICA_SOURCE_INPUTS,
                 constants.TASK_TYPE_VALIDATE_REPLICA_SOURCE_INPUTS,
-                execution,
-                depends_on=[get_instance_info_task.id])
+                execution)
 
 
             validate_replica_destination_inputs_task = self._create_task(
             validate_replica_destination_inputs_task = self._create_task(
                 instance,
                 instance,