Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix check_task.py #197

Merged
merged 2 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions handler/checker/check_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,16 @@ def execute_one_node(self,steps_nu,node):
self.stdio.verbose("run task in node: {0}".format(StringUtils.node_cut_passwd_for_log(node)))
steps = self.task[steps_nu]
nu = 1
task_variable_dict={}
for step in steps["steps"]:
try:
self.stdio.verbose("step nu: {0}".format(nu))
if len(self.cluster) == 0:
raise Exception("cluster is not exist")
step_run = StepBase(self.context, step, node, self.cluster, self.task_variable_dict)
step_run = StepBase(self.context, step, node, self.cluster, task_variable_dict)
self.stdio.verbose("step nu: {0} initted, to execute".format(nu))
step_run.execute(self.report)
self.task_variable_dict=step_run.update_task_variable_dict()
task_variable_dict=step_run.update_task_variable_dict()
if "report_type" in step["result"] and step["result"]["report_type"] == "execution":
self.stdio.verbose("report_type stop this step")
return
Expand Down
1 change: 0 additions & 1 deletion handler/checker/step/stepbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ def __init__(self, context, step, node, cluster, task_variable_dict):
self.step = step
self.node = node
self.cluster = cluster
self.task_variable_dict = {}
self.task_variable_dict = task_variable_dict

def execute(self, report):
Expand Down
Loading