From b5b4fe06e65033b624f8d77d84a931a4a981d7c3 Mon Sep 17 00:00:00 2001 From: Nyan Lin Paing <117423022+LinPaing21@users.noreply.github.com> Date: Thu, 3 Sep 2026 11:46:17 +0700 Subject: [PATCH] Run a queue worker under Sail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MarkBookingPaid/MarkBookingRefunded (and anything else ShouldQueue) had nothing consuming the jobs table locally — no queue service existed in compose.yaml, so a booking's status only flipped once someone happened to run `sail artisan queue:work` by hand. Refund actions in Filament looked like they hadn't taken effect until that ran. --- compose.yaml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/compose.yaml b/compose.yaml index 6bd6210..06e98bc 100644 --- a/compose.yaml +++ b/compose.yaml @@ -24,6 +24,27 @@ services: depends_on: - pgsql - redis + laravel.queue: + build: + context: './vendor/laravel/sail/runtimes/8.5' + dockerfile: Dockerfile + args: + WWWGROUP: '${WWWGROUP}' + image: 'sail-8.5/app' + # Nothing was processing MarkBookingPaid/MarkBookingRefunded — a + # confirmed/cancelled booking's status only ever flipped once + # someone happened to run `sail artisan queue:work` by hand. + command: php artisan queue:work --tries=3 --sleep=1 + environment: + WWWUSER: '${WWWUSER}' + LARAVEL_SAIL: 1 + volumes: + - '.:/var/www/html' + networks: + - sail + depends_on: + - pgsql + - redis pgsql: image: 'postgres:18-alpine' ports: