<#1398 Signal use> Pull request opened by <wild-en...
# flyte-github
a
#1398 Signal use Pull request opened by wild-endeavor TL;DR This PR adds some Flyte remote constructs around gate nodes so that pyflyte run works. Type ☐ Bug Fix ☑︎ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed ☑︎ Smoke tested ☑︎ Unit tests added ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description These are the workflows that this was tested on. https://github.com/flyteorg/flytesnacks/blob/gate-example/cookbook/core/control_flow/human_in_the_loop.py pyflyte
Copy code
pyflyte 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
Copy code
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 checks
#1398 Signal use Pull request ready for review by wild-endeavor flyteorg/flytekit