Skip to content

Commit d42ae5b

Browse files
committed
Add idempotency key and scope to Query
1 parent 141c3db commit d42ae5b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

apps/webapp/app/v3/querySchemas.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,10 +167,14 @@ export const runsSchema: TableSchema = {
167167
expression: "if(depth > 0, true, false)",
168168
},
169169

170-
// Useless until we show the user-provided key
171170
idempotency_key: {
172171
name: "idempotency_key",
173-
...column("String", { description: "Idempotency key", example: "user-123-action-456" }),
172+
clickhouseName: "idempotency_key_user",
173+
...column("String", { description: "Idempotency key (available from 4.3.3)", example: "user-123-action-456" }),
174+
},
175+
idempotency_key_scope: {
176+
name: "idempotency_key_scope",
177+
...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"], }),
174178
},
175179
region: {
176180
name: "region",

0 commit comments

Comments
 (0)