From 9b1e19272af7053229cc4d7c687c22f709d9867a Mon Sep 17 00:00:00 2001 From: Cyrille Derche Date: Sat, 16 Nov 2024 20:12:30 +0100 Subject: [PATCH] trigger the first run --- src/services/discourse/core.service.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/services/discourse/core.service.ts b/src/services/discourse/core.service.ts index 873e50c..a496fb9 100644 --- a/src/services/discourse/core.service.ts +++ b/src/services/discourse/core.service.ts @@ -22,6 +22,7 @@ async function createDiscourseSchedule(platformId: string, endpoint: string): Pr try { const schedule = await temporalDiscourse.createSchedule(platformId, endpoint); logger.info(`Started schedule '${schedule.scheduleId}'`); + await schedule.trigger(); return schedule.scheduleId; } catch (error) { logger.error(error, 'Failed to create discourse schedule');