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
88d0560e
Commit
88d0560e
authored
Sep 04, 2019
by
Douglas Barbosa Alexandre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable Sidekiq retries
parent
5f784e2a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
ee/app/workers/concerns/geo/secondary/backfill_worker.rb
ee/app/workers/concerns/geo/secondary/backfill_worker.rb
+2
-0
ee/spec/workers/geo/secondary/repository_backfill_worker_spec.rb
.../workers/geo/secondary/repository_backfill_worker_spec.rb
+8
-0
No files found.
ee/app/workers/concerns/geo/secondary/backfill_worker.rb
View file @
88d0560e
...
...
@@ -17,6 +17,8 @@ module Geo
include
::
Gitlab
::
Geo
::
LogHelpers
include
::
Gitlab
::
Utils
::
StrongMemoize
sidekiq_options
retry:
false
attr_reader
:shard_name
,
:start_time
,
:loops
end
...
...
ee/spec/workers/geo/secondary/repository_backfill_worker_spec.rb
View file @
88d0560e
...
...
@@ -14,6 +14,14 @@ describe Geo::Secondary::RepositoryBackfillWorker, :geo, :geo_fdw, :clean_gitlab
stub_healthy_shards
(
shard_name
)
end
it
'disables Sidekiq retries'
do
expect
(
subject
.
sidekiq_options_hash
).
to
eq
(
'retry'
=>
false
,
'queue'
=>
'geo:geo_secondary_repository_backfill'
,
'queue_namespace'
=>
:geo
)
end
describe
'#perform'
do
it
'does not schedule jobs when Geo database is not configured'
do
create
(
:project
)
...
...
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