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
This commit is contained in:
Stan Hu 2018-12-06 11:23:54 -08:00
parent a50c777d95
commit 9141341b9d

View file

@ -39,7 +39,7 @@ Sidekiq.configure_server do |config|
ActiveRecord::Base.clear_all_connections!
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)
end