Commit 8a65229b3548a421ca6e7c41a819b40d50f7e162
1 parent
639b0a87
Exists in
master
and in
4 other branches
Updates project to process web hooks async via sidekiq.
A new queue of "project_web_hook" is used to process web hooks asynchronously, allowing each to succeed/fail (and be retried) independently. (Basically, project web hooks now process the same as system hooks.)
Showing
5 changed files
with
16 additions
and
3 deletions
Show diff stats
Procfile
app/models/project.rb
app/models/web_hook.rb
lib/tasks/sidekiq.rake
... | ... | @@ -6,7 +6,7 @@ namespace :sidekiq do |
6 | 6 | |
7 | 7 | desc "GITLAB | Start sidekiq" |
8 | 8 | task :start do |
9 | - run "nohup bundle exec sidekiq -q post_receive,mailer,system_hook,common,default -e #{Rails.env} -P #{pidfile} >> #{Rails.root.join("log", "sidekiq.log")} 2>&1 &" | |
9 | + run "nohup bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,common,default -e #{Rails.env} -P #{pidfile} >> #{Rails.root.join("log", "sidekiq.log")} 2>&1 &" | |
10 | 10 | end |
11 | 11 | |
12 | 12 | def pidfile | ... | ... |