mysqljs / mysql

A pure node.js JavaScript Client implementing the MySQL protocol.
MIT License
18.22k stars 2.53k forks source link

mysql error with cronjob (node-cron) #2494

Closed segun-flexible closed 2 years ago

segun-flexible commented 3 years ago

Am using node-cron to run a cron job every 12 Oclock Midnight, the job am running is to increment some data on the user table, the issue now is that, the job will run twice.

e.g i wanna increment 15, after 12 o'clock, it will turn to 17 instead of 16.

have tried my possible best to detect the issue ,am unable.

dougwilson commented 2 years ago

Hello, sorry you are having trouble. Your issue is unrelated to this module, unfortunately; you will likely want to seek help from the corn stuff.