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

154
Views
Scheduling an email report that runs based on user selected date and time

I came across these two libraries https://www.npmjs.com/package/node-schedule and https://www.npmjs.com/package/node-cron.

The user can disable/enable email reports for a scheduled task.The scheduled report can be monthly/weekly/daily.

I save the scheduled timings in the database.But how do i refer a scheduled cron later in future if required to destroy.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Try to use crontab

here you can refer to all jobs whenever you want later

var cron = require('crontab');

cron.load(function(err, crontab) {        
  // show all jobs 
  var jobs = crontab.jobs();

  // show jobs with conditions 
  var jobs = crontab.jobs({command:'ls -l', comment:/comment 1/});
}
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!