improvement(trigger): increase maxDuration for background tasks to 10 min to match sync API executions (#1504)

* improvement(trigger): increase maxDuration for background tasks to 10 min to match sync API executions

* add trigger proj id
This commit is contained in:
Waleed
2025-10-01 10:40:18 -07:00
committed by GitHub
parent 4ad9be0836
commit 1a2c4040aa
2 changed files with 4 additions and 2 deletions

View File

@@ -103,6 +103,7 @@ export const env = createEnv({
DOCKER_BUILD: z.boolean().optional(), // Flag indicating Docker build environment
// Background Jobs & Scheduling
TRIGGER_PROJECT_ID: z.string().optional(), // Trigger.dev project ID
TRIGGER_SECRET_KEY: z.string().min(1).optional(), // Trigger.dev secret key for background jobs
TRIGGER_DEV_ENABLED: z.boolean().optional(), // Toggle to enable/disable Trigger.dev for async jobs
CRON_SECRET: z.string().optional(), // Secret for authenticating cron job requests

View File

@@ -1,10 +1,11 @@
import { defineConfig } from '@trigger.dev/sdk'
import { env } from './lib/env'
export default defineConfig({
project: 'proj_kufttkwzywcydwtccqhx',
project: env.TRIGGER_PROJECT_ID ?? '',
runtime: 'node',
logLevel: 'log',
maxDuration: 180,
maxDuration: 600,
retries: {
enabledInDev: false,
default: {