Jeremy Phelps
07/22/2021, 6:02 PMQueued
state and I can't change them at all (the set_task_run_states
mutation claims "SUCCESS"
for each of the task runs, but the same task run IDs are still returned when I look for Queued
task runs). If I could just delete everything, my deployment scripts would be able to recreate the flows, projects, etc. and everything would finally work.Jeremy Phelps
07/22/2021, 6:28 PMsetTaskRunState
instead, on a single ID:
mutation {
setTaskRunState(input: { taskRunId: "d615f3e8-701e-4e9e-afc7-aba1ae4ace15",
version: 10,
state: "{\"type\":\"Failed\",\"message\":\"Manually cancelled.\"}"} )
{
id
task_run {
state
id
task_id
}
}
}
The return value shows that it failed (the task run is still Queued
), without showing any reason:
{
"data": {
"setTaskRunState": {
"id": "d615f3e8-701e-4e9e-afc7-aba1ae4ace15",
"task_run": {
"state": "Queued",
"id": "d615f3e8-701e-4e9e-afc7-aba1ae4ace15",
"task_id": "8dccd04d-0df3-4ac9-9ef9-8a73581d1a0d"
}
}
}
}
nicholas
set_task_run_states
instead and the mutation example I sent you the other day?Jeremy Phelps
07/22/2021, 6:35 PMset_task_run_states
. It reports "SUCCESS"
for every task_run_id I pass to it, but in reality nothing happens.nicholas
Jeremy Phelps
07/22/2021, 6:36 PMquery{
task {
flow {
id
name
}
id
name
tags
task_runs (where: {state: {_eq:"Queued"}}) {
id
name
state
}
}
}
Jeremy Phelps
07/22/2021, 6:37 PMFailed
with set_task_run_states
.nicholas
Jeremy Phelps
07/22/2021, 6:39 PMRunning
. But I'd expect Prefect to switch them to failed
because task failure should trigger flow run failure.Jeremy Phelps
07/22/2021, 6:41 PMnicholas
Runs in Progress
tile here:Jeremy Phelps
07/22/2021, 6:45 PMCancelled
state, while others are stuck in Cancelling
.nicholas
Jeremy Phelps
07/22/2021, 6:46 PMJeremy Phelps
07/22/2021, 6:46 PMJeremy Phelps
07/22/2021, 6:47 PMJeremy Phelps
07/22/2021, 6:48 PMnicholas
nicholas
Jeremy Phelps
07/22/2021, 6:50 PMnicholas
nicholas
Jeremy Phelps
07/22/2021, 6:54 PMnicholas
nicholas
Jeremy Phelps
07/22/2021, 7:00 PM