Skip to content

Flytekit - Conversion of protobuf to python type files #1377

Answered by SandraGH5
SandraGH5 asked this question in Q&A
Discussion options

You must be logged in to vote

An input.pb is a LiteralMap so just follow this pattern since this is basically what the entrypoint does when a task runs for real.
https://github.com/flyteorg/flytekit/blob/3106c775fcc7425d38290062b5ab47a368fd448a/flytekit/bin/entrypoint.py#L102

So you can run pyflyte-execute locally - just pass the inputs as path on your local filesystem and outputs as another directory location, and also pass a raw output prefix on the local filesystem. Then see how dispatch_execute handles it.

Basically pyflyte-execute gets inputs.pb and parses it to give to the task.

@wild-endeavor
@kumare3

Replies: 1 comment

Comment options

SandraGH5
Aug 25, 2021
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by SandraGH5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
flytekit FlyteKit Python related issue
1 participant