3 ms·
If in the cloud: Something like AWS CloudWatch If node.js: setInterval for short intervals, Bree for more complicated tasks [1] If C: time_t If Java: java.ut
by nexuist 6y ago
If in the cloud: Something like AWS CloudWatch
If node.js: setInterval for short intervals, Bree for more complicated tasks [1]
If C: time_t
If Java: java.util.Timer, probably something 3rd party that better is wrapped around this
Anyways, the bigger point is that you should be expressing these interval settings in code, not system configurations. Everyone checks in source code but nobody checks in the crontab. It's better if you rely on the application to do these things rather than the system, because the system could always change beneath your feet (i.e. management says we're using Google Cloud now! Good luck porting a 200 line crontab to GCP) but you are in total control of your application's source code.
[1] https://jobscheduler.net/#/ https://jobscheduler.net/#/