Skip to main content

Overview

Cachet uses a queue to send mail and beacons without slowing down the rest of the application.

Supervisor

We recommend Supervisor to manage the queue worker. Supervisor monitors and controls long-running programs through a consistent interface.

Cachet v2.4

/etc/supervisor.d/conf/cachet.conf

Cachet v2.3

Create a Supervisor configuration file named /etc/supervisor.d/conf/cachet.conf:
/etc/supervisor.d/conf/cachet.conf

Queues using the scheduler

The default installation sets the queue type to database. Cachet stores jobs in your database, and a cron job calls an Artisan command to process them. Create a cron job. On Ubuntu, run crontab -e and add this line:
/etc/crontab
Save and close the file. The cron job starts processing confirmation and incident emails.

Synchronous queue

If you cannot add a cron job, you can process jobs immediately after they are created.
Avoid this setup for larger installations with hundreds of subscribers. Each email can take a few seconds to send, which slows down your interaction with Cachet.
Set the following value in your .env file:
.env