Skip to content

Commit 2770f70

Browse files
committed
chore: give 4 hours of timeout to nango trigger job in cron service
Signed-off-by: Uroš Marolt <uros@marolt.me>
1 parent cd95fc8 commit 2770f70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

services/apps/cron_service/src/jobs/nangoTrigger.job.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ import { IJobDefinition } from '../types'
1919

2020
const job: IJobDefinition = {
2121
name: 'nango-trigger',
22-
cronTime: IS_DEV_ENV ? CronTime.everyMinute() : CronTime.every(15).minutes(),
23-
timeout: 60 * 60,
22+
cronTime: IS_DEV_ENV ? CronTime.everyMinute() : CronTime.everyHour(),
23+
timeout: 4 * 60 * 60, // 4 hours
2424
process: async (ctx) => {
2525
ctx.log.info('Triggering nango API check as if a webhook was received!')
2626

0 commit comments

Comments
 (0)