herdst_worker 0.2.13 → 0.2.14
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 +4 -4
- data/lib/herdst_worker/queue/processor.rb +4 -4
- data/lib/herdst_worker/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: abe8b9c33c17e39eb8f3bc453f59867a813bad52d273ade952cb416ae9e6a8bb
|
|
4
|
+
data.tar.gz: 779373f610f0220af5b4abe3b0dc78d982d56ee9c8424bc6b9f1ae7c53fd76dd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ee12d5784b12a07a25f3b0f322faf547e0bd6158a01c1e33ba26419df97ace4e17bd4287eed4c68fbf8a28bc7e8dbd5bb47402f47fb9b52250e8ca9b58a37ea7
|
|
7
|
+
data.tar.gz: 85c9804583269bb39ca005273e2385dd4cf1204863bdd89100eb35699745d774389aca0ddbe570051c79a929857827f14a18498ff3f3fb1acb6165f6448d41e8
|
|
@@ -116,14 +116,14 @@ module HerdstWorker
|
|
|
116
116
|
current_time = Time.now.utc.to_i
|
|
117
117
|
if (self.processor_status == "working") && (current_time >= self.restart_time)
|
|
118
118
|
runtime = current_time - self.start_time
|
|
119
|
-
self.app.logger.queue.
|
|
119
|
+
self.app.logger.queue.warn "Stopping after #{runtime} seconds of work"
|
|
120
120
|
set_status "stopping"
|
|
121
121
|
|
|
122
122
|
# On finishing wait for jobs to complete and then set status
|
|
123
123
|
# to idle
|
|
124
124
|
elsif self.processor_status == "finishing"
|
|
125
125
|
if self.job_count == 0
|
|
126
|
-
self.app.logger.queue.
|
|
126
|
+
self.app.logger.queue.warn "Setting processor status to idle"
|
|
127
127
|
set_status "idle"
|
|
128
128
|
end
|
|
129
129
|
|
|
@@ -131,14 +131,14 @@ module HerdstWorker
|
|
|
131
131
|
# to stopped. Once stopped the polling will terminate.
|
|
132
132
|
elsif self.processor_status == "stopping"
|
|
133
133
|
if self.job_count == 0
|
|
134
|
-
self.app.logger.queue.
|
|
134
|
+
self.app.logger.queue.warn "Setting processor status to stopped"
|
|
135
135
|
set_status "stopped"
|
|
136
136
|
end
|
|
137
137
|
|
|
138
138
|
end
|
|
139
139
|
|
|
140
140
|
if self.processor_status == "stopped"
|
|
141
|
-
self.app.logger.queue.
|
|
141
|
+
self.app.logger.queue.warn "Exiting program, Service requested to stop"
|
|
142
142
|
throw :stop_polling
|
|
143
143
|
end
|
|
144
144
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: herdst_worker
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Herd.St
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-01-13 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|