acoustic-carpenter-78188
06/12/2023, 7:05 PMFlyteRemote.execute, the user must know the workflow interface and provide workflow inputs as a Python dictionary when launching a workflow. This works, but often involves the user going back and forth between the FlyteConsole and their Jupyter Notebook to ensure all inputs are provided and are of the correct type.
To address this, I created a version of FlyteRemote that leverages Pydantic to dynamically create workflow interfaces. This works by:
1. Querying Flyte for workflows and their input/output interface
2. Converting the interface to a Pydantic model and populating the docstring
3. Returning this model with a execute method that enables launching the workflow on a remote cluster
flyteorg/flytekit
✅ All checks have passed
30/30 successful checksacoustic-carpenter-78188
06/12/2023, 7:05 PM