Skip to content

Commit 4e8f43b

Browse files
feat: Add mode schedules map (#1071)
## Summary - To correctly display online and offline schedules as well as indicate _what_ schedules to deploy, we need to pass in a map of conf modes to schedules defined by a conf in both the deploy submission request as well as when we retrieve conf details. ## Checklist - [ ] Added Unit Tests - [ ] Covered by existing CI - [ ] Integration tested - [ ] Documentation update <!-- av pr metadata This information is embedded by the av CLI when creating PRs to track the status of stacks when using Aviator. Please do not delete or edit this section of the PR. ``` {"parent":"main","parentHead":"","trunk":"main"} ``` --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added per-mode scheduling to deployment and configuration APIs, enabling granular schedules by execution mode. * New optional scheduling options appear in deployment requests, configuration list items, and configuration detail responses. * Backward compatible: existing workflows remain unchanged unless the new options are used. * Improves flexibility for rollout planning and mode-specific timing. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: thomaschow <[email protected]>
1 parent 699a6c3 commit 4e8f43b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

api/thrift/orchestration.thrift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ namespace java ai.chronon.orchestration
33

44
include "common.thrift"
55
include "api.thrift"
6+
include "planner.thrift"
67

78
// This has to be 0-indexed for Java usage
89
enum ConfType {
@@ -119,6 +120,7 @@ struct ScheduleDeployRequest {
119120
1: optional string branch
120121
2: optional string confName
121122
3: optional string confHash
123+
4: optional map<planner.Mode, string> modeSchedules
122124
}
123125

124126
struct ScheduleDeployResponse {
@@ -251,6 +253,7 @@ struct ConfListItemResponse {
251253
1: optional string confName
252254
2: optional ConfType confType
253255
3: optional string confHash
256+
4: optional map<planner.Mode, string> modeSchedules
254257
}
255258

256259
struct ConfListResponse {
@@ -267,6 +270,7 @@ struct ConfGetResponse {
267270
2: optional string confHash
268271
3: optional ConfType confType
269272
4: optional LogicalNode confContents
273+
5: optional map<planner.Mode, string> modeSchedules
270274
}
271275

272276
// ====================== End of Orchestration Service API Types ======================

0 commit comments

Comments
 (0)