Skip to content

Scheduled Jobs

StartKit.AI uses Bree to schedule and execute recurring tasks.

You can find the tasks that run by default in /server/jobs/.

/server/jobs/index.js
export default [
{
name: 'reset-daily-usage',
cron: '0 0 * * *'
},
{
name: 'reset-monthly-usage',
cron: '0 0 1 * *'
}
];

If you need to create a new recurring job then simply create a new file in the /server/jobs/ directory, and add that file’s name and a cron spec to the config in /server/jobs/index.js.

After restarting the server the job will execute automatically on the cron schedule specified.