blob: a0eab0f9fcbc2e127fa8e64540552e6b065cb459 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
# frozen_string_literal: true
class RemoveGeoPrimaryDeprecatedWorkersJobInstances < Gitlab::Database::Migration[2.2]
DEPRECATED_JOB_CLASSES = %w[
Geo::RepositoryVerification::Primary::BatchWorker
Geo::RepositoryVerification::Primary::ShardWorker
Geo::RepositoryVerification::Primary::SingleWorker
Geo::RepositoryVerification::Secondary::SingleWorker
Geo::Scheduler::Primary::PerShardSchedulerWorker
Geo::Scheduler::Primary::SchedulerWorker
]
disable_ddl_transaction!
milestone '16.7'
def up
sidekiq_remove_jobs(job_klasses: DEPRECATED_JOB_CLASSES)
end
def down
# This migration removes any instances of deprecated workers and cannot be undone.
end
end
|