fix: adding more time log for the run status
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user