Skip to content

Commit

Permalink
add execution_name_prefix examples (#1098)
Browse files Browse the repository at this point in the history
Signed-off-by: troychiu <[email protected]>
Co-authored-by: Kevin Su <[email protected]>
  • Loading branch information
troychiu and pingsutw authored Aug 31, 2023
1 parent 20064ca commit 56dfcb6
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/remote_access/remote_access/remote_launchplan.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,10 @@
# execution = remote.execute(
# flyte_lp, inputs={"mean": 1}, execution_name="lp-execution", wait=True
# )
#
# # Or use execution_name_prefix to avoid repeated execution names
# execution = remote.execute(
# flyte_lp, inputs={"mean": 1}, execution_name_prefix="flyte", wait=True
# )
# ```
#
5 changes: 5 additions & 0 deletions examples/remote_access/remote_access/remote_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
# flyte_task, inputs={"n": 200, "mean": 0.0, "sigma": 1.0}, execution_name="task-execution", wait=True
# )
#
# # Or use execution_name_prefix to avoid repeated execution names
# execution = remote.execute(
# flyte_task, inputs={"n": 200, "mean": 0.0, "sigma": 1.0}, execution_name_prefix="flyte", wait=True
# )
#
# # Inspecting execution
# # The 'inputs' and 'outputs' correspond to the task execution.
# input_keys = execution.inputs.keys()
Expand Down
5 changes: 5 additions & 0 deletions examples/remote_access/remote_access/remote_workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,10 @@
# execution = remote.execute(
# flyte_workflow, inputs={"mean": 1}, execution_name="workflow-execution", wait=True
# )
#
# # Or use execution_name_prefix to avoid repeated execution names
# execution = remote.execute(
# flyte_workflow, inputs={"mean": 1}, execution_name_prefix="flyte", wait=True
# )
# ```
#

0 comments on commit 56dfcb6

Please sign in to comment.