mirror of
https://github.com/DeveloLongScript/MHSF.git
synced 2026-05-08 00:34:59 -05:00
inngest will only run when the cron job is done
This commit is contained in:
parent
f5c9e78443
commit
14c43b89d5
@ -17,7 +17,7 @@ export default serve({
|
|||||||
functions: [
|
functions: [
|
||||||
inngest.createFunction(
|
inngest.createFunction(
|
||||||
{ id: "every-60-min" },
|
{ id: "every-60-min" },
|
||||||
[{ cron: "*/30 * * * *" }, { event: "every-60-min" }],
|
[{ cron: "*/30 * * * *" }],
|
||||||
async ({ event, step }) => {
|
async ({ event, step }) => {
|
||||||
const mongo = new MongoClient(process.env.MONGO_DB as string);
|
const mongo = new MongoClient(process.env.MONGO_DB as string);
|
||||||
try {
|
try {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user