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
52b19c35
Commit
52b19c35
authored
Apr 04, 2018
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Gitlab::Geo::LogHelpers to Geo::Scheduler::PerShardSchedulerWorker
parent
b1226f6f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
1 deletion
+14
-1
ee/app/workers/geo/scheduler/per_shard_scheduler_worker.rb
ee/app/workers/geo/scheduler/per_shard_scheduler_worker.rb
+1
-0
ee/app/workers/geo/scheduler/primary/per_shard_scheduler_worker.rb
...rkers/geo/scheduler/primary/per_shard_scheduler_worker.rb
+4
-1
ee/spec/workers/geo/scheduler/per_shard_scheduler_worker_spec.rb
.../workers/geo/scheduler/per_shard_scheduler_worker_spec.rb
+9
-0
No files found.
ee/app/workers/geo/scheduler/per_shard_scheduler_worker.rb
View file @
52b19c35
...
...
@@ -4,6 +4,7 @@ module Geo
include
ApplicationWorker
include
CronjobQueue
include
::
Gitlab
::
Utils
::
StrongMemoize
include
::
Gitlab
::
Geo
::
LogHelpers
HEALTHY_SHARD_CHECKS
=
[
Gitlab
::
HealthChecks
::
FsShardsCheck
,
...
...
ee/app/workers/geo/scheduler/primary/per_shard_scheduler_worker.rb
View file @
52b19c35
...
...
@@ -3,7 +3,10 @@ module Geo
module
Primary
class
PerShardSchedulerWorker
<
Geo
::
Scheduler
::
PerShardSchedulerWorker
def
perform
return
unless
Gitlab
::
Geo
.
primary?
unless
Gitlab
::
Geo
.
primary?
log_info
(
'Current node not a primary'
)
return
end
super
end
...
...
ee/spec/workers/geo/scheduler/per_shard_scheduler_worker_spec.rb
0 → 100644
View file @
52b19c35
require
'spec_helper'
describe
Geo
::
Scheduler
::
PerShardSchedulerWorker
do
it
'includes ::Gitlab::Geo::LogHelpers'
do
expect
(
described_class
).
to
include_module
(
::
Gitlab
::
Geo
::
LogHelpers
)
end
it
'needs many other specs'
end
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