Skip to content

Don't enable metrics if in a Rake task

Nick Thomas requested to merge (removed):2361-disable-metrics-in-rake into master

What does this MR do?

Disables metrics when run from Rake

Are there points in the code the reviewer needs to double check?

Is an environment variable appropriate for this? There doesn't seem to be a built-in way to detect rake

Why was this MR needed?

Metrics relies on the ApplicationSetting database model, which is inappropriate when running, e.g., rake db:migrate

Screenshots (if relevant)

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/2361

Edited by Nick Thomas

Merge request reports