Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
72046f1f
Commit
72046f1f
authored
May 21, 2019
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Cron job to perform repository checks on a Geo secondary node
parent
a492f341
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
ee/changelogs/unreleased/11692-geo-cron-job-to-perform-repository-checks-is-disabled-on-a-secondary-node.yml
...orm-repository-checks-is-disabled-on-a-secondary-node.yml
+5
-0
ee/lib/gitlab/geo/cron_manager.rb
ee/lib/gitlab/geo/cron_manager.rb
+6
-3
ee/spec/lib/gitlab/geo/cron_manager_spec.rb
ee/spec/lib/gitlab/geo/cron_manager_spec.rb
+2
-1
No files found.
ee/changelogs/unreleased/11692-geo-cron-job-to-perform-repository-checks-is-disabled-on-a-secondary-node.yml
0 → 100644
View file @
72046f1f
---
title
:
Geo - Enable Cron job to perform repository checks on a Geo secondary node
merge_request
:
13103
author
:
type
:
fixed
ee/lib/gitlab/geo/cron_manager.rb
View file @
72046f1f
...
...
@@ -3,7 +3,10 @@
module
Gitlab
module
Geo
class
CronManager
COMMON_JOBS
=
%w[geo_metrics_update_worker]
.
freeze
COMMON_JOBS
=
%w[
geo_metrics_update_worker
repository_check_worker
]
.
freeze
PRIMARY_JOBS
=
%w[
geo_prune_event_log_worker
...
...
@@ -11,10 +14,10 @@ module Gitlab
]
.
freeze
SECONDARY_JOBS
=
%w[
geo_repository_sync_worker
geo_file_download_dispatch_worker
geo_repository_verification_secondary_scheduler_worker
geo_migrated_local_files_clean_up_worker
geo_repository_sync_worker
geo_repository_verification_secondary_scheduler_worker
]
.
freeze
GEO_JOBS
=
(
COMMON_JOBS
+
PRIMARY_JOBS
+
SECONDARY_JOBS
).
freeze
...
...
ee/spec/lib/gitlab/geo/cron_manager_spec.rb
View file @
72046f1f
...
...
@@ -29,6 +29,7 @@ describe Gitlab::Geo::CronManager, :geo do
JOBS
=
%w[
ldap_test
repository_check_worker
geo_repository_verification_primary_batch_worker
geo_repository_sync_worker
geo_file_download_dispatch_worker
...
...
@@ -46,7 +47,7 @@ describe Gitlab::Geo::CronManager, :geo do
JOBS
.
each
{
|
name
|
job
(
name
)
&
.
destroy
}
end
let
(
:common_jobs
)
{
[
job
(
'geo_metrics_update_worker'
)]
}
let
(
:common_jobs
)
{
[
job
(
'geo_metrics_update_worker'
)
,
job
(
'repository_check_worker'
)
]
}
let
(
:ldap_test_job
)
{
job
(
'ldap_test'
)
}
let
(
:primary_jobs
)
{
[
job
(
'geo_repository_verification_primary_batch_worker'
)]
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment