feat: add update failed display when the graph execution error

This commit is contained in:
BennyKok
2023-12-15 16:16:35 +08:00
parent ccf167d48e
commit 23db3c1a45
8 changed files with 110 additions and 49 deletions
+2
View File
@@ -60,6 +60,8 @@ export async function createRun(
}
}
console.log(workflow_api);
// Sending to comfyui
const result = await fetch(comfyui_endpoint, {
method: "POST",
+5
View File
@@ -1,9 +1,14 @@
"use server";
import { RunOutputs } from "@/components/RunOutputs";
import { db } from "@/db/db";
import { workflowRunOutputs, workflowRunsTable } from "@/db/schema";
import { eq } from "drizzle-orm";
export async function getRunsOutputDisplay(run_id: string) {
return <RunOutputs run_id={run_id} />;
}
export async function getRunsOutput(run_id: string) {
// throw new Error("Not implemented");
return await db