UpdateProjectAndNamespaceUsageWorker fails if a namespace is near the Postgres max integer
Summary
In gitlab-com/gl-infra/production#8641 (closed) we saw Ci::Minutes::UpdateProjectAndNamespaceUsageWorker
jobs fail consistently with PG::NumericValueOutOfRange: ERROR: integer out of range errors for a specific namespace_id
once it neared 2147483647, the upper limit for integers in Postgres. We should find a way to gracefully handle this case.
Note that this alert was only impacting gitlab-org/gitlab but it would be good to review this bug prior to the end of next month.
Edited by Cheryl Li