simple_job 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +4 -0
- data/lib/simple_job/sqs_job_queue.rb +2 -1
- data/lib/simple_job/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 98bbe530c37cd630a68483d0f4c2033acb5a2833
|
4
|
+
data.tar.gz: 0ab40e24e4a2adc96fdd9841deb0b2d66445f012
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 418d86fce0947a602c20e7eaa35ba6859b33ab742d0f9753d2307fd786c5ade29d510bd6df0e1880610902e4215231af0a3d32aedc9405b6f22fbce82ff599fa
|
7
|
+
data.tar.gz: 207cb4d34ac1a4a008c5f15f05d577e192d8d993630c27ef2a799616c6e6ea8a483e3ecac026cc68a234c71e0488e5806d056e3651f0bb28d49f89b975f6910f
|
data/CHANGELOG.rdoc
CHANGED
@@ -128,7 +128,7 @@ class SQSJobQueue < JobQueue
|
|
128
128
|
exit_next = false
|
129
129
|
|
130
130
|
logger.debug 'trapping terminate signals with function to exit loop'
|
131
|
-
signal_exit = lambda do
|
131
|
+
signal_exit = lambda do |*args|
|
132
132
|
logger.info "caught signal to shutdown; finishing current message and quitting..."
|
133
133
|
exit_next = true
|
134
134
|
end
|
@@ -149,6 +149,7 @@ class SQSJobQueue < JobQueue
|
|
149
149
|
begin
|
150
150
|
sqs_queue.receive_messages(options) do |message|
|
151
151
|
last_message = message
|
152
|
+
last_message_at = Time.now
|
152
153
|
raw_message = JSON.parse(message.body)
|
153
154
|
current_job_type = raw_message['type']
|
154
155
|
definition_class = JobDefinition.job_definition_class_for(raw_message['type'], raw_message['version'])
|
data/lib/simple_job/version.rb
CHANGED