@daocloud-proto/baize 0.108.1 → 0.108.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -67,4 +67,8 @@ export type JobCreationBaseConfig = {
67
67
  export type JobRoleDifferenceConfig = {
68
68
  replicas?: number
69
69
  resources?: BaizeCommonK8s.Resources
70
+ }
71
+
72
+ export type RecoveryConfig = {
73
+ enable?: boolean
70
74
  }
@@ -65,6 +65,7 @@ export type Job = {
65
65
  totalResources?: BaizeCommonK8s.Resources
66
66
  analysis?: BaizeManagement_apiAnalysisV1alpha1Analysis.AnalysisConfig
67
67
  trainingConfig?: TrainingConfig
68
+ recoveryConfig?: BaizeManagement_apiJobV1alpha1Common.RecoveryConfig
68
69
  }
69
70
 
70
71
  export type ListJobsRequest = {
@@ -104,6 +105,7 @@ export type CreateJobRequest = {
104
105
  roleConfig?: {[key: string]: BaizeManagement_apiJobV1alpha1Common.JobRoleDifferenceConfig}
105
106
  analysis?: BaizeManagement_apiAnalysisV1alpha1Analysis.AnalysisConfig
106
107
  trainingConfig?: TrainingConfig
108
+ recoveryConfig?: BaizeManagement_apiJobV1alpha1Common.RecoveryConfig
107
109
  }
108
110
 
109
111
 
@@ -23,6 +23,27 @@ export enum QueueStrategy {
23
23
  BEST_EFFORT_FIFO = "BEST_EFFORT_FIFO",
24
24
  }
25
25
 
26
+ export enum QueuePreemptionWithinClusterQueuePolicy {
27
+ QUEUE_PREEMPTION_WITHIN_CLUSTER_QUEUE_POLICY_UNSPECIFIED = "QUEUE_PREEMPTION_WITHIN_CLUSTER_QUEUE_POLICY_UNSPECIFIED",
28
+ QUEUE_PREEMPTION_WITHIN_CLUSTER_QUEUE_POLICY_NEVER = "QUEUE_PREEMPTION_WITHIN_CLUSTER_QUEUE_POLICY_NEVER",
29
+ QUEUE_PREEMPTION_WITHIN_CLUSTER_QUEUE_POLICY_LOWER_PRIORITY = "QUEUE_PREEMPTION_WITHIN_CLUSTER_QUEUE_POLICY_LOWER_PRIORITY",
30
+ QUEUE_PREEMPTION_WITHIN_CLUSTER_QUEUE_POLICY_LOWER_OR_NEWER_EQUALPRIORITY = "QUEUE_PREEMPTION_WITHIN_CLUSTER_QUEUE_POLICY_LOWER_OR_NEWER_EQUALPRIORITY",
31
+ QUEUE_PREEMPTION_WITHIN_CLUSTER_QUEUE_POLICY_ANY = "QUEUE_PREEMPTION_WITHIN_CLUSTER_QUEUE_POLICY_ANY",
32
+ }
33
+
34
+ export enum QueuePreemptionReclaimWithinCohortPolicy {
35
+ QUEUE_PREEMPTION_RECLAIM_WITHIN_COHORT_POLICY_UNSPECIFIED = "QUEUE_PREEMPTION_RECLAIM_WITHIN_COHORT_POLICY_UNSPECIFIED",
36
+ QUEUE_PREEMPTION_RECLAIM_WITHIN_COHORT_POLICY_NEVER = "QUEUE_PREEMPTION_RECLAIM_WITHIN_COHORT_POLICY_NEVER",
37
+ QUEUE_PREEMPTION_RECLAIM_WITHIN_COHORT_POLICY_ANY = "QUEUE_PREEMPTION_RECLAIM_WITHIN_COHORT_POLICY_ANY",
38
+ QUEUE_PREEMPTION_RECLAIM_WITHIN_COHORT_POLICY_LOWER_PRIORITY = "QUEUE_PREEMPTION_RECLAIM_WITHIN_COHORT_POLICY_LOWER_PRIORITY",
39
+ }
40
+
41
+ export enum QueuePreemptionBorrowWithinCohortPolicy {
42
+ QUEUE_PREEMPTION_BORROW_WITHIN_COHORT_POLICY_UNSPECIFIED = "QUEUE_PREEMPTION_BORROW_WITHIN_COHORT_POLICY_UNSPECIFIED",
43
+ QUEUE_PREEMPTION_BORROW_WITHIN_COHORT_POLICY_NEVER = "QUEUE_PREEMPTION_BORROW_WITHIN_COHORT_POLICY_NEVER",
44
+ QUEUE_PREEMPTION_BORROW_WITHIN_COHORT_POLICY_LOWER_PRIORITY = "QUEUE_PREEMPTION_BORROW_WITHIN_COHORT_POLICY_LOWER_PRIORITY",
45
+ }
46
+
26
47
  export type QueueResource = {
27
48
  name?: string
28
49
  value?: string
@@ -74,6 +95,7 @@ export type CreateQueueRequest = {
74
95
  strategy?: QueueStrategy
75
96
  labels?: {[key: string]: string}
76
97
  annotations?: {[key: string]: string}
98
+ preemptionWithinClusterQueue?: QueuePreemptionWithinClusterQueuePolicy
77
99
  }
78
100
 
79
101
  export type UpdateQueueRequest = {
@@ -86,6 +108,7 @@ export type UpdateQueueRequest = {
86
108
  strategy?: QueueStrategy
87
109
  labels?: {[key: string]: string}
88
110
  annotations?: {[key: string]: string}
111
+ preemptionWithinClusterQueue?: QueuePreemptionWithinClusterQueuePolicy
89
112
  }
90
113
 
91
114
  export type GetQueueRequest = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.108.1",
3
+ "version": "v0.108.3",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"