https://prefect.io logo
Title
a

Andreas Nigg

06/10/2022, 9:06 AM
Hey, for prefect 2.0 can I use *def my_flow(*kwargs) to get my flow parameters? Or do I need to specify each parameter individually as named parameter in my flow function?
1
a

Anna Geller

06/10/2022, 11:24 AM
They must be named, otherwise Prefect will not know what those parameters should be But your function can accept extra kwargs afaik - LMK if you see a different behavior
a

Andreas Nigg

06/10/2022, 6:12 PM
Ah I see. I guess I can also use objects as parameters rather than simple types. I'll try that. Thanks for the reply. All in all the parameter-system in prefect 2.0 is great and the best of all of the systems I had the chance to work with.
👍 1
a

Anna Geller

06/10/2022, 7:10 PM
great to see you like it!