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!");
  })
};
circle-info

You can learn more about cron syntax herearrow-up-right.

Last updated

Was this helpful?