Hey there! In the Prefect settings, you can use Parameters with the data type 'list', 'dict'. Tell me, what is the maximum number of elements a list and a dictionary in a parameter can contain?
👍 1
Konstantin
09/02/2021, 8:49 AM
example:
d [{'a': 'text'},{'a': 10}, {'b': True}]
a = Parameter('var1', default=d )
b
Bouke Krom
09/02/2021, 11:50 AM
afaik they're parsed straight into Python objects so I don't think there is a predefined limit. As long as the file fits on disk and the data fits in memory I guess 😁
k
Konstantin
09/02/2021, 11:53 AM
This is logical, but suddenly there is a limitation
z
Zach Angell
09/02/2021, 1:13 PM
Hi @Konstantin the only limitation would be the size of the payload sent to Cloud/Server, which I believe is limited to 5 mb for Cloud. If you’re seeing a 413 status code when registering the flow, this is likely the cause because Parameter defaults are sent to Cloud/Server on registration