Limit number of queries in Sidekiq worker in test and dev.
Similar to Rails controller and API endpoints (where we have a default limit of 100 queries), we should similarly limit Sidekiq workers to 100 queries as well.
Most of the offending Sidekiq workers are probably already known. This is more to prevent future occurences.
Action items
-
Add Gitlab::QueryLimiting
to all Sidekiq workers -
Add Gitlab::QueryLimiting.disable!
where we exceed 100 queries. Open new issues. -
Update docs => !155160 (merged)
Edited by Thong Kuah