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
263c4357
Commit
263c4357
authored
Feb 26, 2018
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add plugin queue to sidekiq config [ci skip]
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
e3873dc8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
3 deletions
+9
-3
config/sidekiq_queues.yml
config/sidekiq_queues.yml
+1
-0
lib/gitlab/plugin.rb
lib/gitlab/plugin.rb
+3
-3
lib/tasks/plugins.rake
lib/tasks/plugins.rake
+5
-0
No files found.
config/sidekiq_queues.yml
View file @
263c4357
...
...
@@ -68,6 +68,7 @@
- [project_migrate_hashed_storage, 1]
- [storage_migrator, 1]
- [pages_domain_verification, 1]
- [plugin, 1]
# EE-specific queues
- [ldap_group_sync, 2]
...
...
lib/gitlab/plugin.rb
View file @
263c4357
...
...
@@ -7,9 +7,9 @@ module Gitlab
end
def
self
.
execute_all_async
(
data
)
files
.
each
do
|
file
|
PluginWorker
.
perform_async
(
file
,
data
)
end
args
=
files
.
map
{
|
file
|
[
file
,
data
]
}
PluginWorker
.
bulk_perform_async
(
args
)
end
def
self
.
execute
(
file
,
data
)
...
...
lib/tasks/plugins.rake
View file @
263c4357
...
...
@@ -13,4 +13,9 @@ namespace :plugins do
end
end
end
desc
'Validate existing plugins'
task
validate_async: :environment
do
Gitlab
::
Plugin
.
execute_all_async
(
Gitlab
::
DataBuilder
::
Push
::
SAMPLE_DATA
)
end
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