Commit 31b0b2ad authored by Luke Duncalfe's avatar Luke Duncalfe

Load GitLabSchema as workaround for errors

The errors we see are due to a lack of thread safety.

We can remove this workaround when we convert the schema to use
the new query interpreter runtime.

https://gitlab.com/gitlab-org/gitlab/-/issues/211478#note_320636547

See:
- https://gitlab.com/gitlab-org/gitlab/-/issues/211478
- https://gitlab.com/gitlab-org/gitlab/-/issues/210556
parent c778a90a
......@@ -144,4 +144,15 @@ class GitlabSchema < GraphQL::Schema
end
end
GitlabSchema.prepend_if_ee('EE::GitlabSchema')
GitlabSchema.prepend_if_ee('EE::GitlabSchema') # rubocop: disable Cop/InjectEnterpriseEditionModule
# Force the schema to load as a workaround for intermittent errors we
# see due to a lack of thread safety.
#
# TODO: We can remove this workaround when we convert the schema to use
# the new query interpreter runtime.
#
# See:
# - https://gitlab.com/gitlab-org/gitlab/-/issues/211478
# - https://gitlab.com/gitlab-org/gitlab/-/issues/210556
GitlabSchema.graphql_definition
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment