From 14c43b89d59ee95d1589bf1954ccb08195601eff Mon Sep 17 00:00:00 2001 From: dvelo <52332868+DeveloLongScript@users.noreply.github.com> Date: Fri, 26 Jul 2024 01:02:35 -0500 Subject: [PATCH] `inngest` will only run when the `cron` job is done --- src/pages/api/inngest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/api/inngest.ts b/src/pages/api/inngest.ts index 12817e2..8f5b67c 100644 --- a/src/pages/api/inngest.ts +++ b/src/pages/api/inngest.ts @@ -17,7 +17,7 @@ export default serve({ functions: [ inngest.createFunction( { id: "every-60-min" }, - [{ cron: "*/30 * * * *" }, { event: "every-60-min" }], + [{ cron: "*/30 * * * *" }], async ({ event, step }) => { const mongo = new MongoClient(process.env.MONGO_DB as string); try {