Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to perform a scheduled task in sailsjs

How do we perform a repetitive task (once a day for example) in sailsjs. I need to analyze the records in my database, and I want to do it all at once so the user doesn't have to wait each time they update their records.

like image 905
Rockstar5645 Avatar asked Feb 13 '16 01:02

Rockstar5645


1 Answers

You can either roll out your own solution using libraries like Kue, or Agenda, or node-cron, or you can use something like sails-hook-schedule

like image 188
elssar Avatar answered Nov 11 '22 08:11

elssar