Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase max server action duration to 800s with fluid compute #376

Merged
merged 1 commit into from
Feb 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
4 changes: 2 additions & 2 deletions apps/studio.giselles.ai/app/webhooks/github/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Loading