Skip to content

Commit

Permalink
fix: set output parameter slices
Browse files Browse the repository at this point in the history
Signed-off-by: zjgemi <[email protected]>
  • Loading branch information
zjgemi committed Dec 5, 2024
1 parent 43cb6d7 commit 5b388ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/dflow/python/python_op_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ def render_script(self):
if isinstance(sign, Artifact):
slices = self.get_slices(output_artifact_slices, name)
script += " op_obj.slices['%s'] = %s\n" % (name, slices)
else:
slices = self.get_slices(output_parameter_slices, name)
script += " op_obj.slices['%s'] = %s\n" % (name, slices)

script += " import signal\n"
script += " def sigterm_handler(signum, frame):\n"
Expand Down

0 comments on commit 5b388ab

Please sign in to comment.