inngest will only run when the cron job is done

This commit is contained in:
dvelo 2024-07-26 01:02:35 -05:00 committed by GitHub
parent f5c9e78443
commit 14c43b89d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 {