Skip to content

Commit 539da4e

Browse files
committed
Added is_finished virtual column
1 parent 9a9226d commit 539da4e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

apps/webapp/app/v3/querySchemas.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,16 @@ export const runsSchema: TableSchema = {
8989
example: "Completed",
9090
}),
9191
},
92+
is_finished: {
93+
name: "is_finished",
94+
...column("UInt8", {
95+
description:
96+
"Whether the run is finished. This includes failed and successful runs. (0 or 1)",
97+
example: "0",
98+
}),
99+
expression:
100+
"if(status IN ('COMPLETED_SUCCESSFULLY', 'COMPLETED_WITH_ERRORS', 'CANCELED', 'TIMED_OUT', 'CRASHED', 'SYSTEM_FAILURE', 'EXPIRED', 'PAUSED'), true, false)",
101+
},
92102

93103
// Task & queue
94104
task_identifier: {

0 commit comments

Comments
 (0)