From 1b201a690c5bd97ee295c228c59f77b0548477e2 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Thu, 6 Jul 2023 16:45:46 +0200 Subject: [PATCH] Fix --- app/models/communication/website/with_connected_objects.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/models/communication/website/with_connected_objects.rb b/app/models/communication/website/with_connected_objects.rb index 1972448df..5a9c5ed78 100644 --- a/app/models/communication/website/with_connected_objects.rb +++ b/app/models/communication/website/with_connected_objects.rb @@ -14,8 +14,9 @@ module Communication::Website::WithConnectedObjects menus.find_each(&:connect_dependencies) connect(about, self) if about.present? destroy_obsolete_connections - sync_with_git - destroy_obsolete_git_files + # In the same job + sync_with_git_without_delay + destroy_obsolete_git_files_without_delay end handle_asynchronously :rebuild_connections_and_git_files, queue: :low_priority -- GitLab