Hi all, I have updated my prefect versions to the ...
# ask-community
y
Hi all, I have updated my prefect versions to the latest ones in my requirements file. These are the new versions I'm using : prefect==2.19.8 prefect-gcp==0.5.14 prefect-dask==0.2.9 prefect-ray==0.3.6 And with the update I keep getting this error when I want to run my prefect server. prefect-flows | Traceback (most recent call last): prefect-flows | File "/prefect_brut/serve_flows.py", line 16, in <module> prefect-flows | for deployment in flow_factory.get_deployments(source_name, is_schedule_active=schedule_active): prefect-flows | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ prefect-flows | File "/prefect_brut/flow_config_parsing.py", line 70, in get_deployments prefect-flows | deployments.append(parsed_flow.get_deployment(self.__work_pool_name, is_schedule_active)) prefect-flows | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ prefect-flows | File "/prefect_brut/flow_config_parsing.py", line 31, in get_deployment prefect-flows | return flow_function.to_deployment( prefect-flows | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ prefect-flows | File "/usr/local/lib/python3.11/site-packages/prefect/utilities/asyncutils.py", line 304, in coroutine_wrapper prefect-flows | return call() prefect-flows | ^^^^^^ prefect-flows | File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 432, in call prefect-flows | return self.result() prefect-flows | ^^^^^^^^^^^^^ prefect-flows | File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 318, in result prefect-flows | return self.future.result(timeout=timeout) prefect-flows | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ prefect-flows | File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 179, in result prefect-flows | return self.__get_result() prefect-flows | ^^^^^^^^^^^^^^^^^^^ prefect-flows | File "/usr/local/lib/python3.11/concurrent/futures/_base.py", line 401, in __get_result prefect-flows | raise self._exception prefect-flows | File "/usr/local/lib/python3.11/site-packages/prefect/_internal/concurrency/calls.py", line 389, in _run_async prefect-flows | result = await coro prefect-flows | ^^^^^^^^^^ prefect-flows | File "/usr/local/lib/python3.11/site-packages/prefect/flows.py", line 700, in to_deployment prefect-flows | return RunnerDeployment.from_flow( prefect-flows | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ prefect-flows | File "/usr/local/lib/python3.11/site-packages/prefect/deployments/runner.py", line 501, in from_flow prefect-flows | constructed_schedules = cls._construct_deployment_schedules( prefect-flows | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ prefect-flows | File "/usr/local/lib/python3.11/site-packages/prefect/deployments/runner.py", line 432, in _construct_deployment_schedules prefect-flows | return [create_minimal_deployment_schedule(schedule)] prefect-flows | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ prefect-flows | File "/usr/local/lib/python3.11/site-packages/prefect/deployments/schedules.py", line 21, in create_minimal_deployment_schedule prefect-flows | return MinimalDeploymentSchedule( prefect-flows | ^^^^^^^^^^^^^^^^^^^^^^^^^^ prefect-flows | File "/usr/local/lib/python3.11/site-packages/pydantic/v1/main.py", line 341, in init prefect-flows | raise validation_error prefect-flows | pydantic.v1.error_wrappers.ValidationError: 1 validation error for MinimalDeploymentSchedule prefect-flows | schedule prefect-flows | none is not an allowed value (type=type_error.none.not_allowed) Has anyone seen this error before?
l
Hello, I had the same issue and in fact one of my deployment didn't have a schedule provided initially. Once I added a schedule to this deployment I was able to resolve this error