Skip to content

Make CI API to always use primary DB

Kamil Trzcińśki requested to merge make-ci-api-to-always-use-primary into master

What does this MR do?

We hit the problem described in this issue: https://gitlab.com/gitlab-com/infrastructure/issues/1441

This MR makes the CI API to always use primary, because of reasons outlined in the issues.

Secondly, this needs to happen for all requests, because if we connect the second replica that doesn't have yet data and we return 404 runner will think that build is not existing which is not fully true and it will abort job, but do not send the status back as it will assume that this is forbidden.

Does this MR meet the acceptance criteria?

What are the relevant issue numbers?

Merge request reports