https://prefect.io logo
Title
t

Tomas Moreno

03/20/2023, 9:52 PM
is there a good way to add a standard set of parameters to all flows in prefect 1? we're trying to do something like this
class DHFlow(Flow):

    def __init__(self, *args, **kwargs):
        super().__init__(*args, **kwargs)
        self.add_task(Parameter(name="some_param", default=True))
which works locally but breaks in the cloud with
Failed to retrieve task state with error: ClientError([{'path': ['get_or_create_task_run_info'], 'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'locations': [{'line': 2, 'column': 101}], 'path': None}}}])
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/prefect/engine/cloud/task_runner.py", line 154, in initialize_run
    task_run_info = self.client.get_task_run_info(
  File "/usr/local/lib/python3.10/site-packages/prefect/client/client.py", line 1803, in get_task_run_info
    result = self.graphql(mutation)  # type: Any
  File "/usr/local/lib/python3.10/site-packages/prefect/client/client.py", line 570, in graphql
    raise ClientError(result["errors"])
prefect.exceptions.ClientError: [{'path': ['get_or_create_task_run_info'], 'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': 'Expected type UUID!, found ""; Could not parse UUID: ', 'locations': [{'line': 2, 'column': 101}], 'path': None}}}]
j

Jacob Blanco

04/26/2023, 9:02 AM
We are getting this same error but I don’t think we are using any such construct. Interesting.