Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

fix: increase max duration on trigger functions

Brad Barbine5e4245c7b87
diff --git a/apps/carbon/app/routes/api+/trigger.ts b/apps/carbon/app/routes/api+/trigger.ts
index 067d54f544..c4d3eaf291 100644
--- a/apps/carbon/app/routes/api+/trigger.ts
+++ b/apps/carbon/app/routes/api+/trigger.ts
@@ -1,6 +1,10 @@
-import { triggerClient } from "~/lib/trigger.server";
-import serverRuntime from "@remix-run/server-runtime";
import type { ActionFunction } from "@remix-run/node";
+import serverRuntime from "@remix-run/server-runtime";
+import { triggerClient } from "~/lib/trigger.server";
+
+export const config = {
+ maxDuration: 5 * 60, // 5 minutes
+};
// Job registration has been moved to entry.server.tsx;
export const action: ActionFunction = async ({ request }) => {