Skip to content

Instantly share code, notes, and snippets.

@cziem
Last active September 21, 2019 12:17
Show Gist options
  • Save cziem/93f0e583b42fed9c6aa4da08b30988ed to your computer and use it in GitHub Desktop.
Save cziem/93f0e583b42fed9c6aa4da08b30988ed to your computer and use it in GitHub Desktop.
Setup all the cron jobs needed by the application
const scheduler = require("./scheduler/scheduler");
const deleteInactives = require("./cron-jobs/deleteInactives");
// schedule the deleteInactive users job
scheduler(10000, deleteInactives);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment