Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

102
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda