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

375
Views
CRON se ejecuta dos veces en Node js

En nodejs he programado un CRON que se ejecuta todos los días a las 10 a.m. para enviar la notificación automática. Ahora el problema es que, cada vez que este CRON activa, se envían 2 notificaciones al dispositivo del usuario. Aquí está mi código

var job2 = new CronJob('00 00 10 * * *', (res) => { woStatusCheck(); }, null, true, 'Asia/Kolkata'); job2.start();

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Puedes consultar su documentación . El cuarto parámetro del constructor se llama start y, al enviarle true , ejecutará el trabajo antes de salir del constructor. Luego, llamar a su job.start() lo ejecuta nuevamente. O envía false en el cuarto parámetro y usa .start() o elimina .start() y envía true

over 4 years ago · Santiago Trujillo 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!