chore: restart on error

This commit is contained in:
jialin
2025-03-31 16:21:40 +08:00
parent f83e49bd3d
commit eff88528d3
20 changed files with 162 additions and 105 deletions
+2 -14
View File
@@ -447,19 +447,6 @@ export const modelLabels = [
{ label: 'Embedding', value: 'embedding_only' }
];
export const CHECK_FIELDS = new Set([
'backend',
'local_path',
'scheduleType',
'placement_strategy',
'worker_selector',
'gpu_selector',
'backend_parameters',
'backend_version',
'quantization',
'size'
]);
export const excludeFields = [
'replicas',
'categories',
@@ -468,5 +455,6 @@ export const excludeFields = [
'env',
'source',
'quantization',
'size'
'size',
'restart_on_error'
];
+1
View File
@@ -37,6 +37,7 @@ export type SourceType =
export interface FormData {
backend: string;
restart_on_error?: boolean;
env?: Record<string, any>;
size?: number;
quantization?: number;