From 33fe019df0bfe1d6a2be0c8f5877d953964ecef9 Mon Sep 17 00:00:00 2001 From: Lukas Mueller Date: Sun, 26 Sep 2021 13:21:03 +0200 Subject: [PATCH] Made sure to restart the queue as part of the post-update procedure --- app/Console/Commands/PostUpdate.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/Console/Commands/PostUpdate.php b/app/Console/Commands/PostUpdate.php index 6991432ee30d..b8d57ff26400 100644 --- a/app/Console/Commands/PostUpdate.php +++ b/app/Console/Commands/PostUpdate.php @@ -56,7 +56,7 @@ class PostUpdate extends Command exec('vendor/bin/composer install --no-dev -o', $output); - info(print_r($output,1)); + info(print_r($output,1)); info("finished running composer install "); try { @@ -75,9 +75,17 @@ class PostUpdate extends Command info("view cleared"); + try { + Artisan::call('queue:restart'); + } catch (\Exception $e) { + info("I wasn't able to restart the queue."); + } + + info("queue restarted"); + VersionCheck::dispatch(); info("Sent for version check"); - + } }