Skip to content

Commit

Permalink
fix workflow name
Browse files Browse the repository at this point in the history
Signed-off-by: Samhita Alla <aallasamhita@gmail.com>
  • Loading branch information
samhita-alla committed Dec 12, 2023
1 parent 0763ff3 commit 50ed7d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ def t2(x: float) -> float:
# %%
@workflow
@setup_teardown(before=setup, after=teardown)
def decorating_workflow_wf(x: float) -> float:
def decorating_workflow(x: float) -> float:
return t2(x=t1(x=x))


if __name__ == "__main__":
print(decorating_workflow_wf(x=10.0))
print(decorating_workflow(x=10.0))


# %% [markdown]
Expand All @@ -143,7 +143,7 @@ def decorating_workflow_wf(x: float) -> float:
# ```
# pyflyte run --remote \
# https://raw.githubusercontent.com/flyteorg/flytesnacks/master/examples/advanced_composition/advanced_composition/decorating_workflows.py \
# decorating_workflow_wf --x 10.0
# decorating_workflow --x 10.0
# ```
#
# To define workflows imperatively, refer to {ref}`this example <imperative_workflow>`,
Expand Down
2 changes: 1 addition & 1 deletion flyte_tests_manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
],
["advanced_composition.decorating_tasks.decorating_task_wf", { "x": 10 }],
[
"advanced_composition.decorating_workflows.decorating_workflow_wf",
"advanced_composition.decorating_workflows.decorating_workflow",
{ "x": 19.8 }
],
[
Expand Down

0 comments on commit 50ed7d1

Please sign in to comment.