Greetings everyone. I'm attempting to use the the...
# ask-the-community
a
Greetings everyone. I'm attempting to use the the Pydantic plugin and have run into issues when using a Pydantic class as an input to a workflow started remotely in the sandbox. Everything works well running locally, but when containerized and run in the sandbox and error is triggered. I did some initial debugging and it looks like the error is due to an unexpected null in the structure passed to the plugin. To demonstrate the problem, I put together a simple example at: https://github.com/artgramlich/flyte-complex-types-problem showing the issue. I'm not sure if this is an actual issue or I'm just missing something, but happy to open an issue if needed.
y
can you open an issue please?
thank you for the extensive repro
a
Will do. And thanks for the help
y
thank you, might need to ask around a bit. please bear with us.
a
For reference I've created the issue: https://github.com/flyteorg/flyte/issues/5236 Thanks again.
y
thanks, will follow up. trying to understand a bit more of the design of the plugin
r
I am unable to get pydantic types working as inputs to either a
task
or a
workflow
due to this same error, is this not supported?
k
cc @Eduardo Apolinario (eapolinario) was recently upgrading pydantic types - we observed some problems
r
@Ketan (kumare3) I'm looking to write my own type transformer where pydantic models are passed around as simple JSON-serialized strings. Do you know where I can find a good example of this? Currently reading through the transformers in the flytekit repo
Think I got it working - for anyone who comes across this I based my solution off this example
k
Also @Ramsey Natour please put your notes here - https://github.com/flyteorg/flyte/issues/5318
There is active work happening