Scheduled Functions

Scheduled functions are invoked on a defined schedule using cron syntax.

const { ScheduledFunction } = require("@adamite/service-functions");

module.exports = {
  scheduledFunction: new InvokableFunction("5 4 * * *", () => {
    console.log("It's 04:05!");
  })
};

You can learn more about cron syntax here.

Last updated