Skip to content

Commit

Permalink
Merge pull request #1334 from hongriTianqi/dflow
Browse files Browse the repository at this point in the history
wflow: fix a bug in dflow_run.py
  • Loading branch information
pxlxingliang committed Sep 27, 2022
2 parents 2e9064c + aefa11f commit 91d9b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/dflow_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ def main(run_params):
time.sleep(4)
assert(wf.query_status() == 'Succeeded')
for ii in range(len(job_list)):
step = wf.query_step(name="ABACUS-EXAMPLE"+str(ii))
step = wf.query_step(name="ABACUS-EXAMPLE"+str(ii))[0]
if step.phase == 'Succeeded' and step_status[ii] == 0:
download_artifact(step.outputs.artifacts["output"])
step_status[ii] = 1
Expand Down

0 comments on commit 91d9b3d

Please sign in to comment.