Geo: Statement timeout counting local job artifacts
https://sentry.gitlap.com/gitlab/gitlabcom/issues/163635/
PG::QueryCanceled: ERROR: canceling statement due to statement timeout
peek/views/pg.rb:17:in `async_exec'
super(*args)
peek/views/pg.rb:17:in `async_exec'
super(*args)
active_record/connection_adapters/postgresql_adapter.rb:592:in `block in exec_no_cache'
log(sql, name, binds) { @connection.async_exec(sql, []) }
active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
:binds => binds) { yield }
active_support/notifications/instrumenter.rb:20:in `instrument'
yield payload
...
(62 additional frame(s) were not displayed)
ActiveRecord::StatementInvalid: PG::QueryCanceled: ERROR: canceling statement due to statement timeout
: SELECT COUNT(*) FROM "ci_job_artifacts" WHERE ("ci_job_artifacts"."file_store" = 1 OR "ci_job_artifacts"."file_store" IS NULL)
PG::QueryCanceled: ERROR: canceling statement due to statement timeout
: SELECT COUNT(*) FROM "ci_job_artifacts" WHERE ("ci_job_artifacts"."file_store" = 1 OR "ci_job_artifacts"."file_store" IS NULL)