mirror of
https://github.com/simstudioai/sim.git
synced 2026-04-06 03:00:16 -04:00
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:
@@ -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
|
||||
|
||||
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user