Queues, Vite & workers
Each site can have its own queue workers, scheduler, Vite dev server, Reverb and Horizon. Burrow keeps them running in the background, also after a restart, until you stop them. They all live on the site's Workers tab.
Start queue workers#
Open a site's Workers tab and press Start workers. Burrow runs php artisan queue:work in the project with the site's PHP version. The tab shows whether the workers are running, the exact command, and a live log of the jobs being processed.
From a terminal (in the project folder, or name the site):
burrow queue start shop
burrow queue status shop
burrow queue log shop
burrow queue stop shop
You can also start, stop and restart workers from the tray: Queues → shop (see In the tray).
Options#
Press Options… on the Workers tab to choose how the workers run. The options are Laravel's own queue:work flags; the tab shows the resulting command as you type.
| Option | Flag | What it does |
|---|---|---|
| Processes | How many identical workers to run (1–8). | |
| Connection | A connection from config/queue.php. Empty uses QUEUE_CONNECTION from .env. |
|
| Queues | --queue |
Queues to work, highest priority first: high,default. |
| Tries | --tries |
Attempts before a job counts as failed. 0 retries forever. |
| Timeout | --timeout |
Seconds a job may run (Laravel's default is 60). Keep it a few seconds below retry_after in config/queue.php. |
| Backoff | --backoff |
Seconds to wait before retrying a failed job, or one per attempt: 1,5,10. |
| Sleep | --sleep |
Seconds to wait when the queue is empty. |
| Rest | --rest |
Seconds to pause between jobs. |
| Memory | --memory |
Restart a worker that uses more than this many MB (default 128). |
| Max jobs | --max-jobs |
Restart a worker after this many jobs. |
| Max time | --max-time |
Restart a worker after this many seconds. |
| Work in maintenance mode | --force |
Keep working while the app is down (php artisan down). |
The same options work on the command line, and are remembered for next time:
burrow queue start shop --connection=redis --queue=high,default --tries=3 --backoff=5 --processes=2
burrow queue start shop --reset # back to Laravel's defaults
Saving new options while workers run restarts them with the new settings. When a worker exits on purpose (because of Max jobs, Max time or Memory), Burrow starts a fresh one, just like Supervisor would on a server.
After changing your code#
queue:work loads your app once and keeps it in memory, so it doesn't see code changes. Press Restart on the Workers tab (or run burrow queue restart shop) after changing a job.
Prefer not to think about it? Choose queue:listen in the options. It reloads your code for every job, at the cost of speed.
Stopping#
Stopping is graceful: a worker that is in the middle of a job finishes it first (up to its timeout), then exits. Jobs still waiting stay in the queue for next time.
Failed and waiting jobs#
The buttons under the log run Laravel's queue commands for the site and show their output:
| Button | Command | |
|---|---|---|
| Failed jobs | queue:failed |
List jobs that failed. |
| Retry all failed | queue:retry all |
Put every failed job back on its queue. |
| Delete failed jobs | queue:flush |
Forget all failed jobs. |
| Clear waiting jobs | queue:clear |
Delete jobs that haven't run yet. |
burrow queue failed shop
burrow queue retry shop
burrow queue flush shop
burrow queue clear shop
The scheduler#
The Scheduler section of the Workers tab runs php artisan schedule:work, which runs the tasks in your routes/console.php on time, like the cron entry you'd add on a server. Sub-minute tasks such as ->everyFiveSeconds() work too.
burrow schedule start shop
burrow schedule log shop
burrow schedule stop shop
Vite dev server#
Press Start Vite in the Vite dev server section of the Workers tab. Burrow runs npm run dev in the project with Burrow's Node.js, with hot reload served over HTTPS on the site's own address (shop.test) and the same trusted certificate as the site. There are no browser warnings or mixed-content errors, and nothing in vite.config.js has to change.
burrow vite start shop
burrow vite log shop
burrow vite stop shop
The project needs a dev script in package.json and its node_modules (run npm install once). Stopping Vite switches pages back to the built assets from npm run build.
Reverb (WebSockets)#
When the project has Laravel Reverb installed, the Workers tab shows a Reverb section. Start Reverb runs php artisan reverb:start, and browsers connect to wss://shop.test/app through Burrow, on the site's HTTPS address with its trusted certificate. No extra port or certificate setup is needed.
burrow reverb start shop
burrow reverb log shop
burrow reverb stop shop
The site's Health tab checks that REVERB_HOST, REVERB_PORT and REVERB_SCHEME in .env point at the site, and can set them for you.
Horizon#
When the project has Laravel Horizon installed, the Workers tab shows a Horizon section. Start Horizon runs php artisan horizon, which manages queue workers from config/horizon.php; Open dashboard opens https://shop.test/horizon. Horizon needs Redis, so turn it on in Services first.
burrow horizon start shop
burrow horizon log shop
burrow horizon stop shop # running jobs finish first
Use Horizon instead of the queue workers above, not alongside them.
In the tray#
The tray's Queues menu has one entry per site, showing what runs. Each one can start or stop the queue workers (and restart them), the scheduler and the Vite dev server, and Options and log… opens the site's Workers tab.
Is it working?#
- A green dot next to a site in the list means its workers, scheduler or Vite dev server are running; red means one keeps failing. The tray shows a ⚠ next to that site under Queues.
- When queue workers, the scheduler or Vite start failing, the desktop app also shows a notification (see Notifications).
- Failing usually means the app can't start the worker. Under the command, the Workers tab shows why the last attempt stopped and when Burrow tries again; open the log for the details. Common causes are a queue connection that can't be reached (for example
REDIS_HOST=redisleft over from Docker; use127.0.0.1) or the queue's database table missing (php artisan migrate). - Logs are kept in
~/.local/share/burrow/logs/workers/. Burrow rotates them with the limits set in Settings → Logs.