Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
Cron job from 9am to 5pm EVERY day

I wrote a schedule/cron job with the following expression

"0 9-17 * * *"

as I wanted it to run everyday from 9am to 5pm, every hour. However the callback function was only executed for day 1 and not for everyday.

const job = schedule.scheduleJob("0 9-17 * * *", async () => {
// my code
})

Please do highlight my mistake.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

this should help you with the issue -> https://cron.help/every-5-minutes-between-9-and-5

If you want cronjob to run everyday between 9 to 5 and lets say each 5 miuntes it would be like this:

*/5 9-17 * * *

If you want to run it every minutes you should do something like:

*/1 9-17 * * *

To run it between 9-17 each hour use:

*/60 9-17 * * *

enter image description here

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!