This commit is contained in:
dongchangxi committed 2023-11-16 09:25:49 +08:00
1 parent 3197efd6a3
commit 46dacc2f7c
7 files changed
+62 -13

No files matched your search

+9 -1
View File
@@ -117,7 +117,15 @@ def need_run_stepx(task_distributed_id):
#查询改任务的最后一个状态
if result and result["finished_at"]:
if result["step"] == "step1":
return "step2"
#如果是要执行 step2 ,并且当前主机是R11 R12 ,则要判断step1是否是当前的主机执行的
if hostname == "R11" or hostname == "R12":
if hostname != result["hostname"]:
return "no"
else:
return "step2"
else:
return "step2"
elif result["step"] == "step2":
return "step3"
elif result["step"] == "step3":