acoustic-carpenter-78188
01/03/2023, 9:38 PMpyflyte run --remote core/control_flow/human_in_the_loop.py mainwf --a 3
pyflyte run --remote core/control_flow/human_in_the_loop.py wf_dyn --a 3
Remote usage
Some sample usage of new remote bits
In [1]: from flytekit.remote.remote import FlyteRemote
...: from flytekit.configuration import Config
...: r = FlyteRemote(
...: Config.auto(config_file="/Users/ytong/.flyte/dev.yaml"),
...: default_project="flytesnacks",
...: default_domain="development",
...: )
In [2]: r.list_signals("atc526g94gmlg4w65dth")
Out[2]:
[id {
signal_id: "my-signal-name"
execution_id {
project: "flytesnacks"
domain: "development"
name: "atc526g94gmlg4w65dth"
}
}
type {
simple: BOOLEAN
}
, id {
signal_id: "my-signal-name-2"
execution_id {
project: "flytesnacks"
domain: "development"
name: "atc526g94gmlg4w65dth"
}
}
type {
simple: INTEGER
}
]
In [3]: r.set_signal("my-signal-name", "atc526g94gmlg4w65dth", True)
In [4]: r.set_signal("my-signal-name-2", "atc526g94gmlg4w65dth", 5)
Tracking Issue
flyteorg/flyte#3125
flyteorg/flyte#208
flyteorg/flytekit
✅ All checks have passed
30/30 successful checksacoustic-carpenter-78188
01/03/2023, 9:38 PMacoustic-carpenter-78188
01/05/2023, 9:34 PM