Commit 13942c47 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'remove-gitlab-metrics-from-stuck-import-jobs' into 'master'

Removes Gitlab::Metrics usage from StuckImportJobsWorker

See merge request !2728
parents 4e80a5fe ba9fcbf9
......@@ -5,12 +5,8 @@ class StuckImportJobsWorker
IMPORT_JOBS_EXPIRATION = 15.hours.to_i
def perform
projects_without_jid_count = mark_projects_without_jid_as_failed!
projects_with_jid_count = mark_projects_with_jid_as_failed!
Gitlab::Metrics.add_event(:stuck_import_jobs,
projects_without_jid_count: projects_without_jid_count,
projects_with_jid_count: projects_with_jid_count)
mark_projects_without_jid_as_failed!
mark_projects_with_jid_as_failed!
end
private
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment