Heya is there a standard/guidance for passing in parameter structs between tasks? Ideally I’d define a struct via
@dataclasses.dataclass
or maybe
pydantic
and be able to pass around all attributes of the struct easily. Are people just using json or something?
a
alex
02/08/2022, 5:19 PM
Good question! All of those options are possible with Prefect, so it all comes down to what works well with your code and your personal preference. I personally like using dataclasses or Pydantic models because they work well with Python’s type hinting.
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.