alex
07/20/2022, 2:46 PMquery get_running_flows {
flow_run(where: {state: {_eq: "Running"}}) {
state
created
flow {
id
}
}
}
I received this error
{
"errors": [
{
"path": [
"flow_run",
0,
"created"
],
"message": "Cannot return null for non-nullable field flow_run.created.",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
],
"data": null
}
So it looks like the associated flow is no longer available.
I removed the flow
clause from the api to just get the flow run ids
and tried deleting them using
mutation delete_flow_run {
deleteFlowRun(input: {flowRunId:
"87b8fa4f-a206-438f-95b2-364ea4187338"}) {
success,
error
}
}
but I get this response
{
"data": {
"deleteFlowRun": {
"success": false,
"error": null
}
}
}
My flows run either using kubernetes agents or local agents and this issue impacts both of themKevin Kho
07/20/2022, 9:26 PMquery {
task_run (where: {state: {_eq: "Running"},
task: {tags: {_contains: "tag"}}}) {
id
flow_run{
name
id
}
task{
name
tags
}
}
}
?alex
07/20/2022, 9:53 PMmutation delete_flow_run {
deleteFlowRun(input: {flowRunId:
"d781167d-aa8f-49e1-a5a9-ab548813191b"}) {
success,
error
}
}
but now I'm getting this error for the original query you shared
{
"errors": [
{
"path": [
"task_run",
0,
"id"
],
"message": "Cannot return null for non-nullable field task_run.id.",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
],
"data": null
}
How would you recommend I clear these old flows?query check_flows_with_labels {
flow_run(where: {state: {_eq: "Running"}, labels: {_contains: "limited-label"}}) {
id
created
name
}
}
I was able to identify some mysterious old flow runs that are not showing up in the UI
Adding a flow { name }
clause to the query above gives this error
{
"errors": [
{
"path": [
"flow_run",
0,
"id"
],
"message": "Cannot return null for non-nullable field flow_run.id.",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
],
"data": null
}
Trying to cancel one of the mysterious flow runs gives this issue
mutation cancel_flow_run {
cancel_flow_run(input: {flow_run_id: "cd1924f1-a0f3-4cc5-a35b-322d4e034e2b"}) {
state
}
}
{
"errors": [
{
"path": [
"cancel_flow_run"
],
"message": "'NoneType' object has no attribute 'flow_group_id'",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
],
"data": {
"cancel_flow_run": null
}
}
Anna Geller
08/12/2022, 5:48 PM