From 313c0a6a9aa16a551e9ebefb4bb3d9ede4600db6 Mon Sep 17 00:00:00 2001 From: Matthias Guillitte Date: Tue, 18 Feb 2025 18:48:32 +0100 Subject: [PATCH] Fix queue --- app/Browser/BrowserJob.php | 2 ++ dockerEntryPoint.sh | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Browser/BrowserJob.php b/app/Browser/BrowserJob.php index 6c20e72..027c27d 100644 --- a/app/Browser/BrowserJob.php +++ b/app/Browser/BrowserJob.php @@ -28,6 +28,8 @@ abstract class BrowserJob implements ShouldQueue public int $jobId; + public $timeout = 300; + public function __construct(int $jobId) { $this->jobId = $jobId; diff --git a/dockerEntryPoint.sh b/dockerEntryPoint.sh index 631798f..00a81ec 100644 --- a/dockerEntryPoint.sh +++ b/dockerEntryPoint.sh @@ -7,7 +7,7 @@ php ./artisan migrate --force php ./artisan optimize:clear && php ./artisan optimize # Queue worker -php ./artisan queue:work --queue=high,default --tries=3 --timeout=90 --sleep=3 --daemon --no-interaction & +php ./artisan queue:work --queue=high,default --tries=3 --timeout=300 --sleep=3 --daemon --no-interaction & # Start all of the server sumulataneously php ./artisan serve --no-interaction -vvv --port=80 --host=0.0.0.0