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
5b6e6605
Commit
5b6e6605
authored
Jun 20, 2017
by
Tiago Botelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moves remote mirror, import and fork workers to their own queue
parent
1501d7c9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
app/workers/repository_update_mirror_worker.rb
app/workers/repository_update_mirror_worker.rb
+2
-1
app/workers/repository_update_remote_mirror_worker.rb
app/workers/repository_update_remote_mirror_worker.rb
+2
-1
config/sidekiq_queues.yml
config/sidekiq_queues.yml
+2
-1
No files found.
app/workers/repository_update_mirror_worker.rb
View file @
5b6e6605
...
...
@@ -4,9 +4,10 @@ class RepositoryUpdateMirrorWorker
include
Sidekiq
::
Worker
include
Gitlab
::
ShellAdapter
include
DedicatedSidekiqQueue
# Retry not neccessary. It will try again at the next update interval.
sidekiq_options
queue: :project_mirror
,
retry:
false
sidekiq_options
retry:
false
attr_accessor
:project
,
:repository
,
:current_user
...
...
app/workers/repository_update_remote_mirror_worker.rb
View file @
5b6e6605
...
...
@@ -4,8 +4,9 @@ class RepositoryUpdateRemoteMirrorWorker
include
Sidekiq
::
Worker
include
Gitlab
::
ShellAdapter
include
DedicatedSidekiqQueue
sidekiq_options
queue: :project_mirror
,
retry:
3
,
dead:
false
sidekiq_options
retry:
3
,
dead:
false
sidekiq_retry_in
{
|
count
|
30
*
count
}
...
...
config/sidekiq_queues.yml
View file @
5b6e6605
...
...
@@ -57,7 +57,8 @@
# EE specific queues
- [ldap_group_sync, 2]
- [geo, 1]
- [project_mirror, 1]
- [repository_update_mirror, 1]
- [repository_update_remote_mirror, 1]
- [project_update_repository_storage, 1]
- [admin_emails, 1]
- [geo_repository_update, 1]
...
...
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