Commit 8b4e6a70 authored by Mike Kozono's avatar Mike Kozono Committed by Gabriel Mazetto

Run Geo::VerificationCronWorker on secondaries

Also fixes a bug in which Geo::VerificationCronWorker was run
on non-Geo deployments.
parent 1271fdf1
......@@ -5,6 +5,7 @@ module Gitlab
class CronManager
COMMON_JOBS = %w[
geo_metrics_update_worker
geo_verification_cron_worker
repository_check_worker
].freeze
......
......@@ -16,6 +16,7 @@ RSpec.describe Gitlab::Geo::CronManager, :geo do
geo_repository_verification_secondary_scheduler_worker
geo_metrics_update_worker
geo_prune_event_log_worker
geo_verification_cron_worker
].freeze
def job(name)
......@@ -28,7 +29,7 @@ RSpec.describe Gitlab::Geo::CronManager, :geo do
let_it_be(:primary) { create(:geo_node, :primary) }
let_it_be(:secondary) { create(:geo_node) }
let(:common_jobs) { [job('geo_metrics_update_worker'), job('repository_check_worker')] }
let(:common_jobs) { [job('geo_metrics_update_worker'), job('repository_check_worker'), job('geo_verification_cron_worker')] }
let(:ldap_test_job) { job('ldap_test') }
let(:primary_jobs) { [job('geo_repository_verification_primary_batch_worker')] }
......
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