What middleware can do timing service in node.js?

A model with a schedule, including:

a.: 
b.:

demand:
if the start and end time of this schedule in the database is Aug. 23, 2018, then the database will automatically change the status of this data to expire at that time.
I just wrote node. I don"t know how to do it. Please let me know that the database is mysql.

add: if the start and end time is accurate to minutes, do I have to retrieve the unfinished state of modification from the database every minute?

Apr.23,2021

node-schedule to see if it can meet the demand. If middleware is used, it can be packaged by itself.


cron learn about it. As for business requirements, package yourself

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4876f-44cb0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4876f-44cb0.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?