<#953 Update SDK to call Dataproxy.GetActionData> ...
# flyte-github
a
#953 Update SDK to call Dataproxy.GetActionData Pull request opened by katrogan Which has now been deprecated in RunsService --- Tested against the flyte2 demo local cluster with the prerequisite back-end changes after triggering a run:
Copy code
.venv/bin/python -c "
  import asyncio, flyte
  from flyte.remote._run import Run

  async def main():
      await flyte.init_from_config.aio('.flyte/config-oss-local.yaml', project='flytesnacks', domain='development')
      run = await Run.get.aio('rjwnhmwkflr7dcr6k4rf')
      print('Run:', run.name)
      print('Phase:', run.phase)
      inputs = await run.inputs.aio()
      print('Inputs:', inputs)
      outputs = await run.outputs.aio()
      print('Outputs:', outputs)

  asyncio.run(main())
  "

  Output:
  Run: rjwnhmwkflr7dcr6k4rf
  Phase: ActionPhase.SUCCEEDED
  Inputs: {'x': 4}
  Outputs: ActionOutputs(o0=13)
flyteorg/flyte-sdk