will milner
05/25/2022, 5:18 PMKevin Kho
will milner
05/25/2022, 5:20 PMERROR:agent:Error attempting to set flow run state for 16ab885e-6b95-43cd-9214-38e13f18fde5: [{'message': 'State update failed for flow run ID 16ab885e-6b95-43cd-9214-38e13f18fde5', 'locations': [{'line': 2, 'column': 5}], 'path': ['set_flow_run_states'], 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'message': 'State update failed for flow run ID 16ab885e-6b95-43cd-9214-38e13f18fde5'}}}]
Inspecting the graphql logs I do see this
State update failed for flow run ID 16ab885e-6b95-43cd-9214-38e13f18fde5
GraphQL request:2:3
1 | mutation ($input: set_flow_run_states_input!) {
2 | set_flow_run_states(input: $input) {
| ^
3 | states {
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/graphql/execution/execute.py", line 628, in await_result
return await result
File "/prefect-server/src/prefect_server/graphql/extensions.py", line 52, in resolve
result = await result
File "/prefect-server/src/prefect_server/graphql/states.py", line 45, in resolve_set_flow_run_states
*[check_size_and_set_state(state_input) for state_input in input["states"]]
File "/prefect-server/src/prefect_server/graphql/states.py", line 39, in check_size_and_set_state
agent_id=agent_id,
File "/prefect-server/src/prefect_server/api/states.py", line 53, in set_flow_run_state
raise ValueError(f"State update failed for flow run ID {flow_run_id}")
ValueError: State update failed for flow run ID 16ab885e-6b95-43cd-9214-38e13f18fde5
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/graphql/execution/execute.py", line 674, in await_completed
return await completed
File "/usr/local/lib/python3.7/site-packages/graphql/execution/execute.py", line 659, in await_result
return_type, field_nodes, info, path, await result
File "/usr/local/lib/python3.7/site-packages/graphql/execution/execute.py", line 733, in complete_value
raise result
File "/usr/local/lib/python3.7/site-packages/graphql/execution/execute.py", line 628, in await_result
return await result
File "/prefect-server/src/prefect_server/graphql/extensions.py", line 52, in resolve
result = await result
File "/prefect-server/src/prefect_server/graphql/states.py", line 45, in resolve_set_flow_run_states
*[check_size_and_set_state(state_input) for state_input in input["states"]]
File "/prefect-server/src/prefect_server/graphql/states.py", line 39, in check_size_and_set_state
agent_id=agent_id,
File "/prefect-server/src/prefect_server/api/states.py", line 53, in set_flow_run_state
raise ValueError(f"State update failed for flow run ID {flow_run_id}")
graphql.error.graphql_error.GraphQLError: State update failed for flow run ID 16ab885e-6b95-43cd-9214-38e13f18fde5
GraphQL request:2:3
1 | mutation ($input: set_flow_run_states_input!) {
2 | set_flow_run_states(input: $input) {
| ^
3 | states {
Kevin Kho
will milner
05/25/2022, 5:22 PMKevin Kho