Greetings everyone. I'm attempting to use the the...
# flyte-support
w
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.
t
can you open an issue please?
thank you for the extensive repro
w
Will do. And thanks for the help
t
thank you, might need to ask around a bit. please bear with us.
w
For reference I've created the issue: https://github.com/flyteorg/flyte/issues/5236 Thanks again.
t
thanks, will follow up. trying to understand a bit more of the design of the plugin
b
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?
f
cc @high-accountant-32689 was recently upgrading pydantic types - we observed some problems
b
@freezing-airport-6809 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
f
Also @boundless-policeman-47000 please put your notes here - https://github.com/flyteorg/flyte/issues/5318
👍 1
There is active work happening