Skip to content

Commit 7ae9be6

Browse files
Add streamDeadlineMinutes to AiPlatform gRPC config (#27693)
* add grpc timeout var * Update generated TypeScript types * enhance description * Update generated TypeScript types * simplify description --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent dd5ebc1 commit 7ae9be6

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

openmetadata-spec/src/main/resources/json/schema/configuration/aiPlatformConfiguration.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@
2525
"keepAliveTimeout": {
2626
"description": "Keep alive timeout for the gRPC server",
2727
"type": "integer"
28+
},
29+
"streamDeadlineMinutes": {
30+
"description": "Deadline (minutes) enforced on a streaming response from the gRPC server.",
31+
"type": "integer",
32+
"default": 20,
33+
"minimum": 1,
34+
"maximum": 60
2835
}
2936
},
3037
"required": ["port"]

openmetadata-ui/src/main/resources/ui/src/generated/configuration/aiPlatformConfiguration.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,13 @@ export interface GrpcConfiguration {
8888
* Host for the gRPC server
8989
*/
9090
port: number;
91+
/**
92+
* Deadline (minutes) Collate enforces on an AI Platform streaming response. Carried on the
93+
* gRPC call, so the AI Platform reads it from context and wraps up gracefully. The chat
94+
* lock sweeper uses streamDeadlineMinutes + 2 as its default stale-lock ceiling (override
95+
* via COLLATE_CHAT_LOCK_MAX_DURATION_MINUTES). Capped at 60 minutes; for longer tasks
96+
* prefer async job + polling over a single long-lived stream.
97+
*/
98+
streamDeadlineMinutes?: number;
9199
[property: string]: any;
92100
}

0 commit comments

Comments
 (0)