graphile-scheduler
graphile-scheduler copied to clipboard
runOnce function does not run at all
Hi, my code example is below
const name = `send_reminder`
const cronResp = await runOnce({
connectionString: CONN_STRING,
schedules: [
{
name: name,
pattern: "* * * * *",
timeZone: "Asia/Kuala_Lumpur",
task: async (payload) => {
console.log("---------------------- --------", bidderDetails, payload, name)`
}
}
]
}
when i use runOnce
, the code does not run at all, eventhough it's recorded in graphile_worker.jobs
. However, it works for run
In graphile_worker.jobs
they seem to be recording twice.
Any ideas?
Regards