smart_proxy_container_gateway 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 95ed3584f3ef8379b2abbaef70031e5add4d0f0a364acbc8d938284329c45aff
4
- data.tar.gz: bd7eb01e1ad8d4cb58ffd0c9a356cef25d5004db93c66f14f58bc8fb0051cb90
3
+ metadata.gz: 6d52f9d8f94dbb3b6023873a2a1b60d1111d976becb39a571da2ed5a611591ab
4
+ data.tar.gz: a1682bbd3d662e3f908a6de9b4608eff35f7d729179abbef816e276c53b55565
5
5
  SHA512:
6
- metadata.gz: 512516a03a9eaaa34f39dc9e8fdf0260efbcbbc2077971c4f0dfc8872e32310bcf14bf180d73be481c6ebcb6ad94fba753f6cc4d206e528c27a463bbb28c8899
7
- data.tar.gz: 774fa2b2bc4ea74808a0d50668675f88a3d962b343ffd056c4f66fb597bdbb124e019e5bff7e26d52f12f2015eaa170683aebc0b30cb4f6647e6f3156cc21611
6
+ metadata.gz: 316bdf2ba69af1c58c5f035fda37f1213c19f0a370574888bc43821dc8426dbbcffadc02a665b43b1af485c4b4737db0410e07eedffaa15ea80a0ed1643ddaa3
7
+ data.tar.gz: e2b1a51b8776709a6b60b6218c77bc2a609b8415737079c01620bc94580e0a252106dea3ea585b8f70248f669bb7ff45ffb848697243843caa947994034178bd
@@ -7,7 +7,8 @@ module Proxy
7
7
 
8
8
  default_settings :pulp_endpoint => "https://#{`hostname`.strip}",
9
9
  :katello_registry_path => '/v2/',
10
- :sqlite_db_path => '/var/lib/foreman-proxy/smart_proxy_container_gateway.db'
10
+ :sqlite_db_path => '/var/lib/foreman-proxy/smart_proxy_container_gateway.db',
11
+ :sqlite_timeout => 30_000
11
12
 
12
13
  # Load defaults that copy values from SETTINGS. This is done as
13
14
  # programmable settings since SETTINGS isn't initialized during plugin
@@ -174,7 +174,8 @@ module Proxy
174
174
 
175
175
  def initialize_db
176
176
  file_path = Proxy::ContainerGateway::Plugin.settings.sqlite_db_path
177
- conn = Sequel.connect("sqlite://#{file_path}")
177
+ sqlite_timeout = Proxy::ContainerGateway::Plugin.settings.sqlite_timeout
178
+ conn = Sequel.connect("sqlite://#{file_path}", timeout: sqlite_timeout)
178
179
  container_gateway_path = $LOAD_PATH.detect { |path| path.include? 'smart_proxy_container_gateway' }
179
180
  begin
180
181
  Sequel::Migrator.check_current(conn, "#{container_gateway_path}/smart_proxy_container_gateway/sequel_migrations")
@@ -1,5 +1,5 @@
1
1
  module Proxy
2
2
  module ContainerGateway
3
- VERSION = '1.0.8'.freeze
3
+ VERSION = '1.0.9'.freeze
4
4
  end
5
5
  end
@@ -6,3 +6,5 @@
6
6
  :pulp_client_ssl_key: 'RSA private key for the Pulp certificate'
7
7
  :katello_registry_path: 'Katello container registry suffix, e.g., /v2/'
8
8
  :sqlite_db_path: '/var/lib/foreman-proxy/smart_proxy_container_gateway.db'
9
+ # Database busy timeout in milliseconds
10
+ :sqlite_timeout: 30000
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_container_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Ballou
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-02 00:00:00.000000000 Z
11
+ date: 2023-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sequel