Skip to content

Commit e931cd4

Browse files
committed
feat(webapp): expose is_warm_start in TRQL runs schema
1 parent e825409 commit e931cd4

2 files changed

Lines changed: 23 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
area: webapp
3+
type: feature
4+
---
5+
6+
Expose `is_warm_start` in the TRQL `runs` schema so warm vs cold start data can be queried and visualized in Dashboards.

apps/webapp/app/v3/querySchemas.ts

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,19 @@ export const runsSchema: TableSchema = {
176176
idempotency_key: {
177177
name: "idempotency_key",
178178
clickhouseName: "idempotency_key_user",
179-
...column("String", { description: "Idempotency key (available from 4.3.3)", example: "user-123-action-456" }),
179+
...column("String", {
180+
description: "Idempotency key (available from 4.3.3)",
181+
example: "user-123-action-456",
182+
}),
180183
},
181184
idempotency_key_scope: {
182185
name: "idempotency_key_scope",
183-
...column("String", { description: "The idempotency key scope determines whether a task should be considered unique within a parent run, a specific attempt, or globally. An empty value means there's no idempotency key set (available from 4.3.3).", example: "run", allowedValues: ["global", "run", "attempt"], }),
186+
...column("String", {
187+
description:
188+
"The idempotency key scope determines whether a task should be considered unique within a parent run, a specific attempt, or globally. An empty value means there's no idempotency key set (available from 4.3.3).",
189+
example: "run",
190+
allowedValues: ["global", "run", "attempt"],
191+
}),
184192
},
185193
region: {
186194
name: "region",
@@ -404,6 +412,13 @@ export const runsSchema: TableSchema = {
404412
...column("UInt8", { description: "Whether this is a test run (0 or 1)", example: "0" }),
405413
expression: "if(is_test > 0, true, false)",
406414
},
415+
is_warm_start: {
416+
name: "is_warm_start",
417+
...column("Nullable(UInt8)", {
418+
description: "Whether this run used a warm start vs a cold start.",
419+
example: "1",
420+
}),
421+
},
407422
concurrency_key: {
408423
name: "concurrency_key",
409424
...column("String", {

0 commit comments

Comments
 (0)