Commit ba9fcbf9 authored by Tiago Botelho's avatar Tiago Botelho

Removes Gitlab::Metrics usage from StuckImportJobsWorker

parent 4e80a5fe
......@@ -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