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.
1 Answer
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