summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2014-11-11 16:59:50 +0100
committerJacob Vosmaer <contact@jacobvosmaer.nl>2014-11-14 12:22:22 +0100
commitc10f61802be9d9059b64386cca6bfc3b07beb0b1 (patch)
tree755841d394012d1d9299134fb1df9224c58b2736 /app
parentf9814bf28831aeef746cfdc35431c8de45ff7677 (diff)
downloadgitlab-ce-c10f61802be9d9059b64386cca6bfc3b07beb0b1.tar.gz
Run 'GC.start' after every EmailsOnPushWorker job
Diffstat (limited to 'app')
-rw-r--r--app/workers/emails_on_push_worker.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/workers/emails_on_push_worker.rb b/app/workers/emails_on_push_worker.rb
index 2947c8e3ecd..e3f6f3a6aef 100644
--- a/app/workers/emails_on_push_worker.rb
+++ b/app/workers/emails_on_push_worker.rb
@@ -21,5 +21,8 @@ class EmailsOnPushWorker
recipients.split(" ").each do |recipient|
Notify.repository_push_email(project_id, recipient, author_id, branch, compare).deliver
end
+ ensure
+ compare = nil
+ GC.start
end
end