Run Cron Job every 59 minutes (1 hour) with Node-Cron
See original GitHub issueI’m more familiar with cron than with node-cron. I just need to run an task each hour, every day. Is this right?
var CronJob = require('cron').CronJob;
var job = new CronJob('* * 59 * * *', function() {
// do something
}, function () {
/* This function is executed when the job stops */
},
true, /* Start the job right now */
timeZone /* Time zone of this job. */
);
Issue Analytics
- State:
- Created 6 years ago
- Comments:6
Top Results From Across the Web
How to Schedule a Job in Node Using node-cron
It will execute your job at the first, second, and third minutes of each hour. How to Use Step Values to Populate Chrone...
Read more >How To Use node-cron to Run Scheduled Jobs in Node.js
Use Node.js and the node-cron library to schedule jobs to manage logs, ... server and use node-cron to schedule a task to run...
Read more >Run Cron Job every 45 minutes with Node-Cron
You're probably looking for 0 */45 * * * *. The ranges are here. Seconds: 0-59; Minutes: 0-59; Hours: 0-23; Day of Month:...
Read more >Scheduling tasks in Node.js using node-cron - LogRocket Blog
The task below runs five minutes every two hours between 8 a.m. and 5:58 p.m. import * as cron from ...
Read more >Cron job every 1 hour - Crontab.guru
The quick and simple editor for cron schedule expressions by Cronitor. “At minute 0.” next at 2022-12-20 16:00:00. random. minute. hour.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seems should be
'00 59 * * * *'
to run at 0:59 1:59 2:59 … 23:59import cron from ‘node-cron’;
cron.schedule(‘*/59 * * * *’, function () { subscriptionStatusExpiry(); });
->subscriptionStatusExpiry() is function name ->this is worked for 59th minute of every hour