Matt Alhonte

04/27/2023, 12:27 AM
Having an issue where I want to start a bunch of subflows based on a parameter (so like, take a client as a Param, then output ML scores for every model associated with that client). So it's something like
flows =, run_config_args=run_config_args, client=unmapped(client)
But I get this (below the fold)
File "/opt/conda/lib/python3.8/site-packages/prefect/client/", line 1209, in create_flow_run
    res = self.graphql(create_mutation, variables=dict(input=inputs))
  File "/opt/conda/lib/python3.8/site-packages/prefect/client/", line 447, in graphql
    params=dict(query=parse_graphql(query), variables=json.dumps(variables)),
  File "/opt/conda/lib/python3.8/json/", line 231, in dumps
    return _default_encoder.encode(obj)
  File "/opt/conda/lib/python3.8/json/", line 199, in encode
    chunks = self.iterencode(o, _one_shot=True)
  File "/opt/conda/lib/python3.8/json/", line 257, in iterencode
    return _iterencode(o, 0)
  File "/opt/conda/lib/python3.8/json/", line 179, in default
    raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type Parameter is not JSON serializable