[Prefect 2.4.2] Possible bug when reschedule a deployed flow #7167
Unanswered
giacobbino
asked this question in
Q&A
Replies: 2 comments
-
Hey @giacobbino |
Beta Was this translation helpful? Give feedback.
0 replies
-
I'm facing the same issue. Anyone know how to fix this problem? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've changed the schedule cron expression after a flow was already deployed. For some reason, the flow keeps being schedule to the new time and at the old time. When the old time run starts I have this error in the agent:
Traceback (most recent call last): File "/home/prefect/prefect_venv/lib/python3.9/site-packages/prefect/agent.py", line 203, in submit_run infrastructure = await self.get_infrastructure(flow_run) File "/home/prefect/prefect_venv/lib/python3.9/site-packages/prefect/agent.py", line 155, in get_infrastructure deployment = await self.client.read_deployment(flow_run.deployment_id) File "/home/prefect/prefect_venv/lib/python3.9/site-packages/prefect/client/orion.py", line 1253, in read_deployment response = await self._client.get(f"/deployments/{deployment_id}") File "/home/prefect/prefect_venv/lib/python3.9/site-packages/httpx/_client.py", line 1751, in get return await self.request( File "/home/prefect/prefect_venv/lib/python3.9/site-packages/httpx/_client.py", line 1527, in request return await self.send(request, auth=auth, follow_redirects=follow_redirects) File "/home/prefect/prefect_venv/lib/python3.9/site-packages/prefect/client/base.py", line 182, in send response.raise_for_status() File "/home/prefect/prefect_venv/lib/python3.9/site-packages/prefect/client/base.py", line 125, in raise_for_status raise PrefectHTTPStatusError.from_httpx_error(exc) from exc.__cause__ prefect.exceptions.PrefectHTTPStatusError: Client error '422 Unprocessable Entity' for url 'http://127.0.0.1:4200/api/deployments/None' Response: {'exception_message': 'Invalid request received.', 'exception_detail': [{'loc': ['path', 'id'], 'msg': 'value is not a valid uuid', 'type': 'type_error.uuid'}], 'request_body': None}
The flow deployment is done through python class
from prefect.deployments import Deployment
callingbuild_from_flow
and thenapply
andupload_to_storage
. I've tried to even delete the flow and deploy from scratch again but the issue seemed solved for one day and reappear the next day. The same error appear if the flow deployment is just updated or deleted before deployment.Any idea what's wrong?
Beta Was this translation helpful? Give feedback.
All reactions