core/apps/webapp/trigger.config.ts
Harshith Mullapudi fa8d2064e1 Feat: v2
2025-07-07 13:46:26 +05:30

24 lines
643 B
TypeScript

import { defineConfig } from "@trigger.dev/sdk/v3";
import { env } from "~/env.server";
export default defineConfig({
project: env.TRIGGER_PROJECT_ID,
runtime: "node",
logLevel: "log",
// The max compute seconds a task is allowed to run. If the task run exceeds this duration, it will be stopped.
// You can override this on an individual task.
// See https://trigger.dev/docs/runs/max-duration
maxDuration: 3600,
retries: {
enabledInDev: true,
default: {
maxAttempts: 3,
minTimeoutInMs: 1000,
maxTimeoutInMs: 10000,
factor: 2,
randomize: true,
},
},
dirs: ["./app/trigger"],
});