添加任务中心失败原因
This commit is contained in:
parent
cfc741232c
commit
473000f4a0
@ -206,6 +206,7 @@ export default async (knex: Knex, forceInit: boolean = false): Promise<void> =>
|
|||||||
table.text("describe");
|
table.text("describe");
|
||||||
table.string("state");
|
table.string("state");
|
||||||
table.integer("startTime");
|
table.integer("startTime");
|
||||||
|
table.string("reason");
|
||||||
table.primary(["id"]);
|
table.primary(["id"]);
|
||||||
table.unique(["id"]);
|
table.unique(["id"]);
|
||||||
},
|
},
|
||||||
@ -1183,7 +1184,7 @@ export default async (knex: Knex, forceInit: boolean = false): Promise<void> =>
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
id: 54,
|
id: 54,
|
||||||
manufacturer: "grsai",
|
manufacturer: "grsai",
|
||||||
model: "veo3.1-fast-4k",
|
model: "veo3.1-fast-4k",
|
||||||
durationResolutionMap: JSON.stringify([]),
|
durationResolutionMap: JSON.stringify([]),
|
||||||
aspectRatio: JSON.stringify(["16:9", "9:16"]),
|
aspectRatio: JSON.stringify(["16:9", "9:16"]),
|
||||||
|
|||||||
3
src/types/database.d.ts
vendored
3
src/types/database.d.ts
vendored
@ -1,4 +1,4 @@
|
|||||||
// @db-hash dc7a91d1bfdbd1024a03543cfd93dfb9
|
// @db-hash 8171d26b6ac1f411a6ec46a0381b821a
|
||||||
//该文件由脚本自动生成,请勿手动修改
|
//该文件由脚本自动生成,请勿手动修改
|
||||||
|
|
||||||
export interface t_aiModelMap {
|
export interface t_aiModelMap {
|
||||||
@ -69,6 +69,7 @@ export interface t_myTasks {
|
|||||||
'id'?: number;
|
'id'?: number;
|
||||||
'model'?: string | null;
|
'model'?: string | null;
|
||||||
'projectId'?: number | null;
|
'projectId'?: number | null;
|
||||||
|
'reason'?: string | null;
|
||||||
'relatedObjects'?: string | null;
|
'relatedObjects'?: string | null;
|
||||||
'startTime'?: number | null;
|
'startTime'?: number | null;
|
||||||
'state'?: string | null;
|
'state'?: string | null;
|
||||||
|
|||||||
@ -86,9 +86,10 @@ export default async (input: ImageConfig, config: AIConfig) => {
|
|||||||
state: "已完成",
|
state: "已完成",
|
||||||
});
|
});
|
||||||
return imageUrl;
|
return imageUrl;
|
||||||
} catch (error) {
|
} catch (error: any) {
|
||||||
await u.db("t_myTasks").where("id", taskId).update({
|
await u.db("t_myTasks").where("id", taskId).update({
|
||||||
state: "生成失败",
|
state: "生成失败",
|
||||||
|
reason: error.message,
|
||||||
});
|
});
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -75,9 +75,10 @@ export default async (input: VideoConfig, config?: AIConfig) => {
|
|||||||
state: "已完成",
|
state: "已完成",
|
||||||
});
|
});
|
||||||
return input.savePath;
|
return input.savePath;
|
||||||
} catch (err) {
|
} catch (err: any) {
|
||||||
await u.db("t_myTasks").where("id", taskId).update({
|
await u.db("t_myTasks").where("id", taskId).update({
|
||||||
state: "生成失败",
|
state: "生成失败",
|
||||||
|
reason: err.message,
|
||||||
});
|
});
|
||||||
return videoUrl;
|
return videoUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user