web47core 3.2.3.4 → 3.2.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2bb5a2396b2b230990a7675260693737b4ac39a3293665e77ea63b3371c00d83
4
- data.tar.gz: 7426d92b28365aeeed8a627e7a975bfac1e841ee42bd0e3f916c90a255021ef1
3
+ metadata.gz: 537185a9e27258ac52b2e531720e73d474eeec16b711e5c9505d5471b38c9a68
4
+ data.tar.gz: ed9970fa12dea3bfcc4e091afdbf94cfc20b6da834011d38db8dad1d9430de37
5
5
  SHA512:
6
- metadata.gz: 4cced0fe710de75de29c93dae58c3e704b08daa817eb0c3bfe4bbf0374665a9a6f152b6da072fc087e0219cd7fe2b8a16928098e6e54424984c1e9bd77069cd8
7
- data.tar.gz: cafe3e73e24829db46d5422f20ad612668235826cd6e3bfe6c4eb6891f3a147df2456015da244d8e6a7e831c56e86e6e64dbc9404a821f07ed849023c26b94e4
6
+ metadata.gz: 5ca12285cf9cd4816649a9cccbc009d6c25afe578f38fd124bb7fa468a3488274d4d51cb7363d05d5070120479495dba993069be6cbb2c85744315e192fb37f0
7
+ data.tar.gz: f16857a4acf1016c00a93f8fae89255d6578e447b70b1934dadf30b7f69e052cfe6f384274563a176245a6f74207779da3b41bed50392368f51bc419cc11d4e6
@@ -221,7 +221,7 @@ module Cron
221
221
  # We don't need any more workers if the job count is less than 1,000
222
222
  #
223
223
  def handle_auto_scale_jobs
224
- return if delayed_jobs_count.zero?
224
+ return if delayed_jobs_count < sys_config.aws_min_worker_job_count
225
225
 
226
226
  case delayed_jobs_count
227
227
  when 1..50
@@ -15,8 +15,11 @@ module AwsConfiguration
15
15
  field :aws_access_key_id, type: String
16
16
  field :aws_secret_access_key, type: String
17
17
  field :aws_bucket_name, type: String
18
+ field :aws_min_worker_job_count, type: Integer, default: 1
18
19
  field :aws_ecs_cluster_worker_name, type: String
19
20
  field :aws_ecs_service_worker_name, type: String
21
+
22
+ validates :aws_min_worker_job_count, numericality: { only_integer: true, greater_than: 0 }
20
23
  end
21
24
  end
22
25
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Web47core
4
- VERSION = '3.2.3.4'
4
+ VERSION = '3.2.3.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: web47core
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.3.4
4
+ version: 3.2.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Schroeder
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-09-04 00:00:00.000000000 Z
11
+ date: 2025-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel