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

101
Views
Cron job between certain hours

I need to run a specific job every hour but the plan is to run it between certain hours. I was able to run it where the first-hour parameter is lower than the second example

const job = schedule.scheduleJob('0 9-19 * * *', async function(){
    let data = await heartBeat.observe();

    console.log('DATA', data);
  });

This pattern executes the method every hour between 9-19 but I want to run it like example from 17-8 (from 17 to 8 tomorrow in the morning) every hour.

about 4 years ago · Juan Pablo Isaza
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!