fix: adding more time log for the run status

This commit is contained in:
bennykok
2024-01-27 18:06:48 +08:00
parent c7727fc1be
commit 0ce07c88f8
5 changed files with 128 additions and 88 deletions
+4 -4
View File
@@ -148,14 +148,14 @@ export const createRun = withServerPromise(
body: JSON.stringify(_data),
cache: "no-store",
});
console.log(___result);
// console.log(___result);
if (!___result.ok)
throw new Error(
`Error creating run, ${
___result.statusText
} ${await ___result.text()}`,
);
console.log(_data, ___result);
// console.log(_data, ___result);
break;
case "runpod-serverless":
const data = {
@@ -182,14 +182,14 @@ export const createRun = withServerPromise(
body: JSON.stringify(data),
cache: "no-store",
});
console.log(__result);
// console.log(__result);
if (!__result.ok)
throw new Error(
`Error creating run, ${
__result.statusText
} ${await __result.text()}`,
);
console.log(data, __result);
// console.log(data, __result);
break;
case "classic":
const body = {
+4
View File
@@ -27,6 +27,10 @@ export async function findAllRuns({
sql<number>`(extract(epoch from ended_at) - extract(epoch from created_at))`.as(
"duration",
),
comfy_deploy_cold_start:
sql<number>`(extract(epoch from queued_at) - extract(epoch from created_at))`.as(
"cold_start_duration",
),
cold_start_duration:
sql<number>`(extract(epoch from started_at) - extract(epoch from queued_at))`.as(
"cold_start_duration",