Commit c6ac63f2 authored by Stan Hu's avatar Stan Hu

Merge branch '267828-remove-minimum_interval-from-backgroundmigrationworker-part-2' into 'master'

Add Sidekiq job parameter to BackgroundMigrationWorker

See merge request gitlab-org/gitlab!45440
parents c46e5d69 0bd963ab
......@@ -23,7 +23,9 @@ class BackgroundMigrationWorker # rubocop:disable Scalability/IdempotentWorker
#
# class_name - The class name of the background migration to run.
# arguments - The arguments to pass to the migration class.
def perform(class_name, arguments = [])
# lease_attempts - The number of times we will try to obtain an exclusive
# lease on the class before running anyway. Pass 0 to always run.
def perform(class_name, arguments = [], lease_attempts = 5)
with_context(caller_id: class_name.to_s) do
should_perform, ttl = perform_and_ttl(class_name)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment