Robert Banick
12/19/2023, 6:16 PMFlow could not be retrieved from deployment.
error that traces back to a pydantic.error_wrappers.ValidationError: 8 validation errors for DeploymentResponse
error.
We have happily used Interval Schedulers for months and months without issue. Stable deployments suddenly started failing about an hour ago. This is affecting every one of our deployments with schedulers.
Full stacktrace in threadsRobert Banick
12/19/2023, 6:16 PMFlow could not be retrieved from deployment.
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/prefect/engine.py", line 294, in retrieve_flow_then_begin_flow_run
flow = await load_flow_from_flow_run(flow_run, client=client)
File "/usr/local/lib/python3.10/dist-packages/prefect/client/utilities.py", line 40, in with_injected_client
return await fn(*args, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/prefect/deployments.py", line 182, in load_flow_from_flow_run
deployment = await client.read_deployment(flow_run.deployment_id)
File "/usr/local/lib/python3.10/dist-packages/prefect/client/orchestration.py", line 1501, in read_deployment
return schemas.responses.DeploymentResponse.parse_obj(response.json())
File "pydantic/main.py", line 526, in pydantic.main.BaseModel.parse_obj
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 8 validation errors for DeploymentResponse
schedule -> timezone
argument of type 'function' is not iterable (type=type_error)
schedule -> cron
field required (type=value_error.missing)
schedule -> timezone
argument of type 'function' is not iterable (type=type_error)
schedule -> anchor_date
extra fields not permitted (type=value_error.extra)
schedule -> interval
extra fields not permitted (type=value_error.extra)
schedule -> rrule
field required (type=value_error.missing)
schedule -> anchor_date
extra fields not permitted (type=value_error.extra)
schedule -> interval
extra fields not permitted (type=value_error.extra)
Nate
12/19/2023, 6:18 PMNate
12/19/2023, 6:18 PMRobert Banick
12/19/2023, 6:21 PMRobert Banick
12/19/2023, 6:26 PMPREFECT_EXPERIMENTAL_ENABLE_WORKSPACE_DASHBOARD
back when the dashboard was released. He’s gone but the account remains registered in his name. This is causing an error where the setting is not recognized in newer version of Prefect (I think)
File "pydantic/main.py", line 341, in pydantic.main.BaseModel.__init__
pydantic.error_wrappers.ValidationError: 1 validation error for Profile
settings
Unknown setting 'PREFECT_EXPERIMENTAL_ENABLE_WORKSPACE_DASHBOARD'. (type=value_error)
Robert Banick
12/19/2023, 6:26 PMNate
12/19/2023, 6:30 PM~/.prefect/profiles.toml
with your preferred editor and remove that setting from your active profileRobert Banick
12/19/2023, 6:31 PMRobert Banick
12/19/2023, 6:38 PMRobert Banick
12/19/2023, 6:39 PMprefect==2.14.11
w/ the requirements.txt
set to install pendulum >= 2.1.2, < 3.0.0
and then re-deploying still results in the deployment choking on pendelum requirements when runRobert Banick
12/19/2023, 6:39 PMRobert Banick
12/19/2023, 6:40 PMRobert Banick
12/19/2023, 6:52 PM'schedule': {'interval': 86400.0, 'anchor_date': '2023-12-19T07:15:28.467541+00:00', 'timezone': 'UTC'}
Robert Banick
12/19/2023, 7:08 PMRobert Banick
12/19/2023, 7:37 PMRobert Banick
12/19/2023, 7:37 PMNate
12/19/2023, 7:37 PM