diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
commit | 7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch) | |
tree | 5bdc2229f5198d516781f8d24eace62fc7e589e9 /lib/gitlab/background_migration/backfill_imported_issue_search_data.rb | |
parent | 185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff) |
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'lib/gitlab/background_migration/backfill_imported_issue_search_data.rb')
-rw-r--r-- | lib/gitlab/background_migration/backfill_imported_issue_search_data.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/gitlab/background_migration/backfill_imported_issue_search_data.rb b/lib/gitlab/background_migration/backfill_imported_issue_search_data.rb index b2d38ce6aa4..c95fed512c9 100644 --- a/lib/gitlab/background_migration/backfill_imported_issue_search_data.rb +++ b/lib/gitlab/background_migration/backfill_imported_issue_search_data.rb @@ -9,10 +9,10 @@ module Gitlab class BackfillImportedIssueSearchData < BatchedMigrationJob SUB_BATCH_SIZE = 1_000 + operation_name :update_search_data + def perform - each_sub_batch( - operation_name: :update_search_data - ) do |sub_batch| + each_sub_batch do |sub_batch| update_search_data(sub_batch) rescue ActiveRecord::StatementInvalid => e raise unless e.cause.is_a?(PG::ProgramLimitExceeded) && e.message.include?('string is too long for tsvector') |