diff options
author | Stan Hu <stanhu@gmail.com> | 2016-10-04 15:32:02 -0700 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-04-14 15:20:55 +0200 |
commit | bca368990acdb86acf251382c191fa9b7627837a (patch) | |
tree | a3718b38143ca1ddc2ccb8241a4696989a08f1fc /app/workers | |
parent | c53afeda0c2ee0cda89c235c9e8799baa1cfdc1a (diff) | |
download | gitlab-ce-bca368990acdb86acf251382c191fa9b7627837a.tar.gz |
Cache the last usage data to avoid unicorn timeouts
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/gitlab_usage_ping_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/gitlab_usage_ping_worker.rb b/app/workers/gitlab_usage_ping_worker.rb index 866f5d03d8b..f26a3f47dad 100644 --- a/app/workers/gitlab_usage_ping_worker.rb +++ b/app/workers/gitlab_usage_ping_worker.rb @@ -15,7 +15,7 @@ class GitlabUsagePingWorker begin HTTParty.post(url, - body: Gitlab::UsageData.to_json, + body: Gitlab::UsageData.to_json(true), headers: { 'Content-type' => 'application/json' } ) rescue HTTParty::Error => e |