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
0
Merge Requests
0
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
Jérome Perrin
gitlab-ce
Commits
4b998239
Commit
4b998239
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
3337130e
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 @
4b998239
...
@@ -68,3 +68,4 @@
...
@@ -68,3 +68,4 @@
- [project_migrate_hashed_storage, 1]
- [project_migrate_hashed_storage, 1]
- [storage_migrator, 1]
- [storage_migrator, 1]
- [pages_domain_verification, 1]
- [pages_domain_verification, 1]
- [plugin, 1]
lib/gitlab/plugin.rb
View file @
4b998239
...
@@ -7,9 +7,9 @@ module Gitlab
...
@@ -7,9 +7,9 @@ module Gitlab
end
end
def
self
.
execute_all_async
(
data
)
def
self
.
execute_all_async
(
data
)
files
.
each
do
|
file
|
args
=
files
.
map
{
|
file
|
[
file
,
data
]
}
PluginWorker
.
perform_async
(
file
,
data
)
end
PluginWorker
.
bulk_perform_async
(
args
)
end
end
def
self
.
execute
(
file
,
data
)
def
self
.
execute
(
file
,
data
)
...
...
lib/tasks/plugins.rake
View file @
4b998239
...
@@ -13,4 +13,9 @@ namespace :plugins do
...
@@ -13,4 +13,9 @@ namespace :plugins do
end
end
end
end
end
end
desc
'Validate existing plugins'
task
validate_async: :environment
do
Gitlab
::
Plugin
.
execute_all_async
(
Gitlab
::
DataBuilder
::
Push
::
SAMPLE_DATA
)
end
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