Commit 9141341b authored by Stan Hu's avatar Stan Hu

Disable Sidekiq feature flag check if features table does not exist

The GitLab Development Kit initialization failed because the Sidekiq
initializer was attempting to look up a feature flag when the `features`
table hadn't been created yet.

Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/54718
parent a50c777d
...@@ -39,7 +39,7 @@ Sidekiq.configure_server do |config| ...@@ -39,7 +39,7 @@ Sidekiq.configure_server do |config|
ActiveRecord::Base.clear_all_connections! ActiveRecord::Base.clear_all_connections!
end end
if Feature.enabled?(:gitlab_sidekiq_reliable_fetcher) if Feature::FlipperFeature.table_exists? && Feature.enabled?(:gitlab_sidekiq_reliable_fetcher)
Sidekiq::ReliableFetcher.setup_reliable_fetch!(config) Sidekiq::ReliableFetcher.setup_reliable_fetch!(config)
end end
......
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