A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
fix: no error log for failed horizon restarts
aminnausine345b0d099cb
diff --git a/app/Services/Server/QueueControlService.php b/app/Services/Server/QueueControlService.phpindex 52706922..7a28403f 100644--- a/app/Services/Server/QueueControlService.php+++ b/app/Services/Server/QueueControlService.php@@ -3,12 +3,17 @@namespace App\Services\Server;use Illuminate\Support\Facades\Artisan;+use Illuminate\Support\Facades\Log;use Laravel\Horizon\Contracts\MasterSupervisorRepository;class QueueControlService {public function restart(): void {- if (config('queue.default') === 'redis' && $this->horizonIsRunning()) {- Artisan::call('horizon:terminate');+ try {+ if (config('queue.default') === 'redis' && $this->horizonIsRunning()) {+ Artisan::call('horizon:terminate');+ }+ } catch (\Throwable $th) {+ Log::error("Unable to restart Horizon", ["error" => $th->getMessage()]);}}