web47core 3.2.3.3 → 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 537185a9e27258ac52b2e531720e73d474eeec16b711e5c9505d5471b38c9a68
|
4
|
+
data.tar.gz: ed9970fa12dea3bfcc4e091afdbf94cfc20b6da834011d38db8dad1d9430de37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5ca12285cf9cd4816649a9cccbc009d6c25afe578f38fd124bb7fa468a3488274d4d51cb7363d05d5070120479495dba993069be6cbb2c85744315e192fb37f0
|
7
|
+
data.tar.gz: f16857a4acf1016c00a93f8fae89255d6578e447b70b1934dadf30b7f69e052cfe6f384274563a176245a6f74207779da3b41bed50392368f51bc419cc11d4e6
|
data/lib/app/jobs/cron/server.rb
CHANGED
@@ -48,7 +48,6 @@ module Cron
|
|
48
48
|
time_to_next_run
|
49
49
|
ensure
|
50
50
|
check_in
|
51
|
-
GC.start
|
52
51
|
end
|
53
52
|
|
54
53
|
def run_cron_jobs
|
@@ -61,6 +60,8 @@ module Cron
|
|
61
60
|
now = Time.now.utc
|
62
61
|
Cron::Tab.all.each { |tab| tab.run if tab.time_to_run?(now) }
|
63
62
|
Cron::Emitter.descendants&.each(&:run)
|
63
|
+
rescue StandardError => error
|
64
|
+
App47Logger.log_error 'Unable to run jobs', error
|
64
65
|
end
|
65
66
|
|
66
67
|
#
|
@@ -220,7 +221,7 @@ module Cron
|
|
220
221
|
# We don't need any more workers if the job count is less than 1,000
|
221
222
|
#
|
222
223
|
def handle_auto_scale_jobs
|
223
|
-
return if delayed_jobs_count.
|
224
|
+
return if delayed_jobs_count < sys_config.aws_min_worker_job_count
|
224
225
|
|
225
226
|
case delayed_jobs_count
|
226
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
|
|
data/lib/web47core/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2025-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|