mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
[bug] prevent VersionCheckWorker from polluting the sidekiq stack in development
This commit is contained in:
parent
b1646f6496
commit
c5bbcf9381
@ -3,6 +3,7 @@
|
||||
- Fix a bug: the subscription page is not available
|
||||
- Fix a bug: users promoted to the administrator role are not in the admin group
|
||||
- Fix a bug: menu separators are not visible
|
||||
- Fix a bug: prevent VersionCheckWorker from polluting the sidekiq stack in development
|
||||
- [TODO DEPLOY] `rails fablab:maintenance:rebuild_stylesheet`
|
||||
|
||||
## v4.4.0 2020 May 12
|
||||
|
@ -6,7 +6,15 @@ class VersionCheckWorker
|
||||
|
||||
def perform
|
||||
require 'fab_hub'
|
||||
res = FabHub.fab_manager_version_check
|
||||
begin
|
||||
res = FabHub.fab_manager_version_check
|
||||
rescue Errno::ECONNREFUSED => e
|
||||
if Rails.env.development?
|
||||
puts "Unable to check the version, maybe FabHub is not running: #{e}"
|
||||
return
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
setting_ver = Setting.find_or_initialize_by(name: 'hub_last_version')
|
||||
value = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user