> For the complete documentation index, see [llms.txt](https://adamite.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://adamite.gitbook.io/docs/server/functions/scheduled-functions.md).

# Scheduled Functions

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

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

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

{% hint style="info" %}
You can learn more about cron syntax [here](https://crontab.guru/).
{% endhint %}
