seek icon indicating copy to clipboard operation
seek copied to clipboard

Find a better way of skipping settings load

Open fbacall opened this issue 1 year ago • 0 comments

We currently use this code: https://github.com/seek4science/seek/blob/master/lib/seek/config.rb#L383-L387

to stop the settings being loaded when e.g. db:create is run.

This has caused an issue in production where Apache was restarted (or a worker was loaded), but the database was not yet available (due to an automatic MySQL update). This caused the default settings to be applied, even after the database became available again, since the class persists for the lifetime of the application worker.

I think there is a solution mentioned somewhere in the docs for https://github.com/huacnlee/rails-settings-cached/

fbacall avatar Aug 01 '22 12:08 fbacall