@daocloud-proto/baize 0.122.0 → 0.123.0
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.
|
@@ -37,6 +37,13 @@ export enum RestartPolicy {
|
|
|
37
37
|
RESTART_POLICY_ON_FAILURE = "RESTART_POLICY_ON_FAILURE",
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export enum ImagePullPolicy {
|
|
41
|
+
IMAGE_PULL_POLICY_UNSPECIFIED = "IMAGE_PULL_POLICY_UNSPECIFIED",
|
|
42
|
+
IMAGE_PULL_POLICY_ALWAYS = "IMAGE_PULL_POLICY_ALWAYS",
|
|
43
|
+
IMAGE_PULL_POLICY_NEVER = "IMAGE_PULL_POLICY_NEVER",
|
|
44
|
+
IMAGE_PULL_POLICY_IF_NOT_PRESENT = "IMAGE_PULL_POLICY_IF_NOT_PRESENT",
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
export enum JobActionRequestAction {
|
|
41
48
|
JOB_ACTION_UNSPECIFIED = "JOB_ACTION_UNSPECIFIED",
|
|
42
49
|
RESTART = "RESTART",
|
|
@@ -68,6 +75,8 @@ export type Job = {
|
|
|
68
75
|
analysis?: BaizeManagement_apiAnalysisV1alpha1Analysis.AnalysisConfig
|
|
69
76
|
trainingConfig?: TrainingConfig
|
|
70
77
|
recoveryConfig?: BaizeManagement_apiJobV1alpha1Common.RecoveryConfig
|
|
78
|
+
cleanCheckpointConfig?: CleanCheckpointConfig
|
|
79
|
+
imagePullPolicy?: ImagePullPolicy
|
|
71
80
|
}
|
|
72
81
|
|
|
73
82
|
export type ListJobsRequest = {
|
|
@@ -124,18 +133,25 @@ export type CreateJobRequest = {
|
|
|
124
133
|
analysis?: BaizeManagement_apiAnalysisV1alpha1Analysis.AnalysisConfig
|
|
125
134
|
trainingConfig?: TrainingConfig
|
|
126
135
|
recoveryConfig?: BaizeManagement_apiJobV1alpha1Common.RecoveryConfig
|
|
136
|
+
cleanCheckpointConfig?: CleanCheckpointConfig
|
|
137
|
+
imagePullPolicy?: ImagePullPolicy
|
|
127
138
|
}
|
|
128
139
|
|
|
140
|
+
export type CleanCheckpointConfig = {
|
|
141
|
+
cronExpr?: string
|
|
142
|
+
dirs?: string[]
|
|
143
|
+
retained?: number
|
|
144
|
+
timezone?: string
|
|
145
|
+
prunePattern?: string
|
|
146
|
+
}
|
|
129
147
|
|
|
130
|
-
|
|
148
|
+
export type TrainingConfig = {
|
|
149
|
+
restartPolicy?: RestartPolicy
|
|
150
|
+
maxRetries?: number
|
|
151
|
+
maxTrainingDuration?: string
|
|
131
152
|
rdmaEnabled?: boolean
|
|
132
153
|
}
|
|
133
154
|
|
|
134
|
-
export type TrainingConfig = BaseTrainingConfig
|
|
135
|
-
& OneOf<{ restartPolicy: RestartPolicy }>
|
|
136
|
-
& OneOf<{ maxRetries: number }>
|
|
137
|
-
& OneOf<{ maxTrainingDuration: string }>
|
|
138
|
-
|
|
139
155
|
|
|
140
156
|
/* baize modified */ export type BaseJobActionRequestParams = {
|
|
141
157
|
}
|