diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-12-02 04:32:23 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-12-02 04:32:23 +0000 |
commit | ec4e7d9a9f7f3526a15905c3fb5d851e4c173349 (patch) | |
tree | a67d8d342dc0e317a38014fb1c93de771bb137db /app/services | |
parent | 71ba28e43967b5eaf0499c2a93c0b1d4f78a35f5 (diff) | |
parent | 6b4d33566f5f434cc86381a4a1347e42bbe348ee (diff) | |
download | gitlab-ce-ec4e7d9a9f7f3526a15905c3fb5d851e4c173349.tar.gz |
Merge branch 'process-commit-worker-improvements' into 'master'
Pass commit data to ProcessCommitWorker
This changes `ProcessCommitWorker` so that it takes a Hash containing commit data instead of a commit SHA. This means the worker doesn't have to access Git just to process a commit message (and other data it may use). This in turn should solve the problem of ending up with 15 000-something jobs in the `process_commit` queue that take forever to process.
See merge request !7744
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/git_push_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/git_push_service.rb b/app/services/git_push_service.rb index 647930d555c..185556c12cc 100644 --- a/app/services/git_push_service.rb +++ b/app/services/git_push_service.rb @@ -135,7 +135,7 @@ class GitPushService < BaseService @push_commits.each do |commit| ProcessCommitWorker. - perform_async(project.id, current_user.id, commit.id, default) + perform_async(project.id, current_user.id, commit.to_hash, default) end end |