From ce9142932603da6aaf9f4f0ef23fc78b63cddef1 Mon Sep 17 00:00:00 2001 From: Andrey Helldar Date: Sat, 23 Mar 2024 21:10:28 +0300 Subject: [PATCH] Added call to restart queues during deployment --- .../2024_03_23_211006_restart_all_failed_jobs.php | 14 ++++++++++++++ deploy.php | 1 + 2 files changed, 15 insertions(+) create mode 100644 actions/2024_03_23_211006_restart_all_failed_jobs.php diff --git a/actions/2024_03_23_211006_restart_all_failed_jobs.php b/actions/2024_03_23_211006_restart_all_failed_jobs.php new file mode 100644 index 0000000..0d64bed --- /dev/null +++ b/actions/2024_03_23_211006_restart_all_failed_jobs.php @@ -0,0 +1,14 @@ +artisan('queue:retry', ['id' => 'all']); + } +}; diff --git a/deploy.php b/deploy.php index 2e72482..9a62fbf 100644 --- a/deploy.php +++ b/deploy.php @@ -41,6 +41,7 @@ 'artisan:actions:before', 'deploy:publish', 'php-fpm:reload', + 'artisan:queue:restart', 'artisan:actions', ]);