summaryrefslogtreecommitdiff
path: root/lib/gitlab/background_migration/helpers/reschedulable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/gitlab/background_migration/helpers/reschedulable.rb')
-rw-r--r--lib/gitlab/background_migration/helpers/reschedulable.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/gitlab/background_migration/helpers/reschedulable.rb b/lib/gitlab/background_migration/helpers/reschedulable.rb
index 3b653059858..6087181609e 100644
--- a/lib/gitlab/background_migration/helpers/reschedulable.rb
+++ b/lib/gitlab/background_migration/helpers/reschedulable.rb
@@ -14,7 +14,7 @@ module Gitlab
extend ActiveSupport::Concern
def reschedule_if_needed(args, &block)
- if should_reschedule?
+ if need_reschedule?
BackgroundMigrationWorker.perform_in(vacuum_wait_time, self.class.name.demodulize, args)
else
yield
@@ -22,9 +22,9 @@ module Gitlab
end
# Override this on base class if you need a different reschedule condition
- def should_reschedule?
- raise NotImplementedError, "#{self.class} does not implement #{__method__}"
- end
+ # def need_reschedule?
+ # raise NotImplementedError, "#{self.class} does not implement #{__method__}"
+ # end
def wait_for_deadtuple_vacuum?(table_name)
return false unless Gitlab::Database.postgresql?