<#78 Add support for running reference tasks> Pull...
# flyte-github
c
#78 Add support for running reference tasks Pull request opened by cosmicBboy This PR adds support for running reference tasks from the cli with: flyte run reference-task <task-name> --arg1 foo --arg2 bar This also modifies the
flyte run
file commands so that it's relative to the current working directory:
Copy code
flyte run 

╭─ Commands ───────────────────────────────────────────────────────────────────────────────────────────╮
│ reference-task         Run reference task 'reference-task' from the Flyte backend                    │
│ exception_handling.py  Run functions decorated with env.task in exception_handling.py                │
│ hello.py               Run functions decorated with env.task in hello.py                             │
│ report_example.py      Run functions decorated with env.task in report_example.py                    │
│ devbox_one.py          Run functions decorated with env.task in devbox_one.py                        │
│ union_type_simple.py   Run functions decorated with env.task in union_type_simple.py                 │
The current behavior showing the absolute path makes the help text less readable ## Test From the
examples/basics
directory, config pointing to playground:
Copy code
flyte --config ../../config.yaml run reference-task exc_handler.always_succeeds
╭──────────────────────────────────────────────── Run ─────────────────────────────────────────────────╮
│ Created Run: r96c2998f766fwr7cn8w  (Project: flytesnacks, Domain: development)                       │
│ ➡️                                                                                                    │
│ https://playground.canary.unionai.cloud/v2/runs/project/flytesnacks/domain/development/r96c2998f766f │
│ wr7cn8w                                                                                              │
╰──────────────────────────────────────────────────────────────────────────────────────────────────────╯
Log streaming enabled, will wait for task to start running and log stream to be available
flyteorg/flyte-sdk