Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix to consider /union-persist-data files as remote files so they can be used as inputs to FlyteRemote #2425

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ggydush
Copy link
Collaborator

@ggydush ggydush commented May 16, 2024

Tracking issue

n/a

Why are the changes needed?

Using persist files with FlyteRemote execute does not work current.

What changes were proposed in this pull request?

Consider files prefixed with /union-persistent-data to be "remote"

How was this patch tested?

  1. Create a task that accepts FlyteFile
@task
def dummy_task(ff: FlyteFile) -> FlyteFile:
   return ff
  1. Call this with FlyteRemote
from flytekit.remote.remote import FlyteRemote

remote = FlyteRemote()
task = "dummy_task"
inputs = {
    "ff": "/union-persistent-data/..."
}
task = remote.fetch_task(name=task)
remote.execute(task, inputs=inputs)

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Related PRs

Docs link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant