elegant-sandwich-48375
07/17/2025, 11:32 AMjolly-florist-66728
07/17/2025, 11:32 AM--execution-name
(or -n
) flag with the pyflyte run
command. This allows you to set a human-readable name for the workflow execution instead of the default randomly generated execution ID. For example:
pyflyte run --remote -n my_custom_name example.py wf --name Ada
According to the pyflyte CLI documentation, the -n, --execution-name <execution_name>
option lets you create a named execution, which can help with tracking and prevents launching multiple executions with the same name.
Would you like more detail on how this works or how to view named executions in the Flyte UI?
Sources:
- pyflyte CLI documentation ๐ 0 button ๐ 0 button ๐ก Hint: Mention @runllm in the thread for followups.acoustic-parrot-22802
07/17/2025, 11:34 AMjolly-florist-66728
07/17/2025, 11:34 AMremote.execute(...)
with the desired inputs. Example:
from flytekit.remote import FlyteRemote
from flytekit.configuration import Config
remote = FlyteRemote(
config=Config.for_endpoint(endpoint="flyte.example.net"),
default_project="flytesnacks",
default_domain="development",
)
workflow = remote.fetch_workflow(name="workflows.example.wf", version="v1")
execution = remote.execute(workflow, inputs={"mean": 1}, execution_name="workflow-execution", wait=True)
For direct HTTP API usage, you must interact with the FlyteAdmin API, but the official documentation does not provide explicit HTTP+JSON examplesโonly that it is possible via the FlyteAdmin endpoints. See the linked resources for more details.
Would you like more detail on using the HTTP API or on monitoring executions?
Sources:
- FlyteRemote workflow execution example
- FlyteAdmin API HTTP example discussion ๐ 0 button ๐ 0 button ๐ก Hint: Mention @runllm in the thread for followups.acoustic-parrot-22802
07/18/2025, 9:16 AMjolly-florist-66728
07/18/2025, 9:16 AMnode_executions
dictionary to check each node's phase and error message. For example:
from flytekit.remote import FlyteRemote
remote = FlyteRemote(...)
execution = remote.fetch_execution(name="exec_id", project="my_project", domain="development")
synced_execution = remote.sync(execution, sync_nodes=True)
for node_id, node_exec in synced_execution.node_executions.items():
print(node_id, node_exec.closure.phase, getattr(node_exec.closure, "error", None))
According to the FlyteRemote documentation and Flyte UI docs, this approach allows you to programmatically or visually inspect the status and error details of each task in a workflow execution.
Would you like more detail on error handling or retrieving logs for failed tasks?
Sources:
- FlyteRemote remote-examples
- Inspecting workflows in the UI ๐ 0 button ๐ 0 button ๐ก Hint: Mention @runllm in the thread for followups.