简体   繁体   中英

Heroku Scheduler custom schedule node.js

I have a node.js script that I would like to run hourly from Monday to Friday, between 9am and 6pm.

How do I get this custom scheduling on Heroku?

Thanks!

One way to do it would be to have your Heroku scheduler run your script every hour. In your script, check if the current date/time is within the range you want. If so - continue, otherwise exit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM