We just got this error in our logs? Anybody knows ...
# prefect-community
m
We just got this error in our logs? Anybody knows what this means?
Copy code
Failed to set task state with error: ClientError([{'path': ['set_task_run_states'], 'message': 'State update failed for task run ID 0c1f4327-19fe-4522-8f8c-ad4c2fb7dc45: provided a running state but associated flow run c4d445b2-8d4e-4863-9ba5-b89b5addeba3 is not in a running state.', 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}])
Traceback (most recent call last):
  File "/opt/app/.venv/lib/python3.8/site-packages/prefect/engine/cloud/task_runner.py", line 112, in call_runner_target_handlers
    state = self.client.set_task_run_state(
  File "/opt/app/.venv/lib/python3.8/site-packages/prefect/client/client.py", line 1295, in set_task_run_state
    result = self.graphql(
  File "/opt/app/.venv/lib/python3.8/site-packages/prefect/client/client.py", line 287, in graphql
    raise ClientError(result["errors"])
prefect.utilities.exceptions.ClientError: [{'path': ['set_task_run_states'], 'message': 'State update failed for task run ID 0c1f4327-19fe-4522-8f8c-ad4c2fb7dc45: provided a running state but associated flow run c4d445b2-8d4e-4863-9ba5-b89b5addeba3 is not in a running state.', 'extensions': {'code': 'INTERNAL_SERVER_ERROR'}}]
n
Hi @Michael Ludwig - are you using Prefect Server or Cloud?
m
It is Cloud
n
Got it, sorry you're experiencing that! Let me see if the Cloud team has any insight on what's going on here
m
I could not really reproduce it but was just wondering about that. I tried to restart a failed flow if that helps 🙂
n
Hm that's helpful, I'm not able to repro either but I'll have the Cloud team dig into logs to see if there was something peculiar about that run
In the meantime, lmk if you see it again!