From caf9495af0e1403e1313d60615c0e8147d75c0b3 Mon Sep 17 00:00:00 2001 From: Tadashi Shigeoka Date: Tue, 18 Feb 2025 11:56:11 +0900 Subject: [PATCH] Increase max server action duration to 800s with fluid compute Extended the maximum duration of server actions from 300s to 800s by enabling fluid compute. refs: - [Fluid compute](https://vercel.com/fluid) - [Vercel Functions Limits](https://vercel.com/docs/functions/limitations#max-duration) --- apps/studio.giselles.ai/app/(playground)/p/[agentId]/page.tsx | 4 ++-- .../app/(playground)/p/[agentId]/prev/page.tsx | 4 ++-- apps/studio.giselles.ai/app/webhooks/github/route.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/studio.giselles.ai/app/(playground)/p/[agentId]/page.tsx b/apps/studio.giselles.ai/app/(playground)/p/[agentId]/page.tsx index 6f0115a5a..aa145de4e 100644 --- a/apps/studio.giselles.ai/app/(playground)/p/[agentId]/page.tsx +++ b/apps/studio.giselles.ai/app/(playground)/p/[agentId]/page.tsx @@ -62,9 +62,9 @@ import { ReactFlowProvider } from "@xyflow/react"; import { eq } from "drizzle-orm"; import { notFound } from "next/navigation"; -// Extend the max duration of the server actions from this page to 5 minutes +// The maximum duration of server actions on this page is extended to 800 seconds through enabled fluid compute. // https://vercel.com/docs/functions/runtimes#max-duration -export const maxDuration = 300; +export const maxDuration = 800; export default async function Page({ params, diff --git a/apps/studio.giselles.ai/app/(playground)/p/[agentId]/prev/page.tsx b/apps/studio.giselles.ai/app/(playground)/p/[agentId]/prev/page.tsx index f08c04f7e..f5b0fc5dd 100644 --- a/apps/studio.giselles.ai/app/(playground)/p/[agentId]/prev/page.tsx +++ b/apps/studio.giselles.ai/app/(playground)/p/[agentId]/prev/page.tsx @@ -18,9 +18,9 @@ import { } from "./beta-proto/react-flow-adapter/types"; import type { AgentId } from "./beta-proto/types"; -// Extend the max duration of the server actions from this page to 5 minutes +// The maximum duration of server actions on this page is extended to 800 seconds through enabled fluid compute. // https://vercel.com/docs/functions/runtimes#max-duration -export const maxDuration = 300; +export const maxDuration = 800; function graphToReactFlow(grpah: Graph) { const nodes: ReactFlowNode[] = grpah.nodes.map((node) => { diff --git a/apps/studio.giselles.ai/app/webhooks/github/route.ts b/apps/studio.giselles.ai/app/webhooks/github/route.ts index d7f70101c..6d5e8720f 100644 --- a/apps/studio.giselles.ai/app/webhooks/github/route.ts +++ b/apps/studio.giselles.ai/app/webhooks/github/route.ts @@ -8,9 +8,9 @@ import { mockGitHubClientFactory, } from "./handle_event"; -// Extend the max duration of the server actions from this page to 5 minutes +// The maximum duration of server actions on this page is extended to 800 seconds through enabled fluid compute. // https://vercel.com/docs/functions/runtimes#max-duration -export const maxDuration = 300; +export const maxDuration = 800; // debug mode // - skip verifying webhook signature