graphile-scheduler icon indicating copy to clipboard operation
graphile-scheduler copied to clipboard

runOnce function does not run at all

Open mingsterism opened this issue 4 years ago • 0 comments

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

mingsterism avatar Dec 05 '20 13:12 mingsterism