Skip to content
Snippets Groups Projects
Commit 78c1ab40 authored by Stan Hu's avatar Stan Hu
Browse files

Gracefully handle when Redis is not available

parent e55473ad
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -295,5 +295,10 @@ if Rails.env.test?
end
 
# Force a refresh of application settings at startup
ApplicationSetting.expire
Ci::ApplicationSetting.expire
begin
ApplicationSetting.expire
Ci::ApplicationSetting.expire
rescue
# Gracefully handle when Redis is not available. For example,
# omnibus may fail here during assets:precompile.
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment