Scheduled jobs

There are a number of pieces of functionality in Outline that rely on scheduled jobs being ran on a regular basis. Cleanup of temporary files, calculating document popularity, sending email reminders, and removing items from the trash being just a few.

Setup

In order to have these be triggered correctly you should setup a cron job that calls the utility endpoint with the token defined in UTILS_SECRET environment variable on daily and hourly schedules. The requests should look like:

https://docs.mycompany.com/api/cron.daily?token=<UTILS_SECRET>
https://docs.mycompany.com/api/cron.hourly?token=<UTILS_SECRET>