Skip to content

Disable query limit counter in sidekiq

Jan Provaznik requested to merge sidekiq-query into master

What does this MR do?

If Sidekiq::Testing.inline! is used, SQL transactions done inside Sidekiq worker are included in the SQL query limit (in a real deployment sidekiq worker is executed separately). To avoid increasing SQL limit counter, the request is marked as whitelisted during Sidekiq block.

What are the relevant issue numbers?

Related to https://gitlab.com/gitlab-org/gitlab-ee/issues/7087

Related discussion in: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/6983#note_97094971

Does this MR meet the acceptance criteria?

Edited by Jan Provaznik

Merge request reports