Answer the question
In order to leave comments, you need to log in
How to perform an action on a timer?
There are records in the table, after 10 hours you need to change each record, how to implement this, given that there is a separate conversion time for each record? setTimeout does not seem to be suitable, because A large number of timers load the processor (or maybe not, enlighten me).
Answer the question
In order to leave comments, you need to log in
Implement a queue, every n minutes the cron twitches a script that looks to see if there are records that need to be changed, you can also set the maximum operating time so as not to load the processor heavily.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question