[Core feature] Eager should support executing tasks/workflows by reference without having access to the original function #4673
Labels
backlogged
For internal use. Reserved for contributor team workflow.
eager-workflows
enhancement
New feature or request
flytekit
FlyteKit Python related issue
Motivation: Why do you think this is important?
This feature would streamline the workflow development process by enabling local execution of a workflow while tasks are in fact being run in a flyte cluster with access to GPUs, agents, plugins etc.
Goal: What should the final outcome look like, ideally?
This feature should enable something like the following:
More concisely, a new class e.g.
import_launchplan
could be used inside of the eager workflow and inherit it's remote definition to fetch things:result = await import_launchplan('lp_name')(directories=[directories])
And be executable with:
pyflyte --config config.yaml run --project project_name toy_example.py toy_example --directories ./
which currently return:
Remotely fetched entities cannot be run locally. Please mock the workflows.remote_workflow.execute.
Describe alternatives you've considered
It's possible to use
pyflyte run --remote
followed bypyflyte fetch
to get the assets back locally, but that's a more manual process.It would also be possible to define everything in a remote context within a python script, including the fetch, but that's developing further away from production.
Propose: Link/Inline OR Additional context
Could be related to: #4570
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: