From 2bc5a219b4300a8e21c198626f64d6fc400878c2 Mon Sep 17 00:00:00 2001 From: Norman Huth Date: Sun, 25 Jan 2026 02:27:52 +0100 Subject: [PATCH] refactor(job): set retry limit to 1 for recipe and menu sync jobs --- app/Jobs/Menu/SyncMenuRecipesJob.php | 8 ++++++++ app/Jobs/Recipe/ImportRecipeJob.php | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/app/Jobs/Menu/SyncMenuRecipesJob.php b/app/Jobs/Menu/SyncMenuRecipesJob.php index 0456497e..9c7fd726 100644 --- a/app/Jobs/Menu/SyncMenuRecipesJob.php +++ b/app/Jobs/Menu/SyncMenuRecipesJob.php @@ -47,4 +47,12 @@ public function handle(): void $menu->recipes()->sync($recipeIds); } + + /** + * Determine numbers of times the job may be attempted. + */ + public function tries(): int + { + return 1; + } } diff --git a/app/Jobs/Recipe/ImportRecipeJob.php b/app/Jobs/Recipe/ImportRecipeJob.php index d39e6418..136fb527 100644 --- a/app/Jobs/Recipe/ImportRecipeJob.php +++ b/app/Jobs/Recipe/ImportRecipeJob.php @@ -480,4 +480,12 @@ protected function getLanguage(): string { return Str::lower($this->locale); } + + /** + * Determine numbers of times the job may be attempted. + */ + public function tries(): int + { + return 1; + } }