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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 53a182d27a5f5c91cbbd4aeba976d1985265452a
4
- data.tar.gz: 156221a26147531f5faede9d7ed8a089a0f991d2
3
+ metadata.gz: 98bbe530c37cd630a68483d0f4c2033acb5a2833
4
+ data.tar.gz: 0ab40e24e4a2adc96fdd9841deb0b2d66445f012
5
5
  SHA512:
6
- metadata.gz: a997545942d0f8ccca3173f2079acca1751918a723a810c9cdcfe5d7abdd1d439adb63b87cab43dfff4afa2aacc719ee9f4948759efedd18894210c7535e5147
7
- data.tar.gz: 65a915f103addd41b7434051ba25c42a5c9f13f17f1d51c5cb206a6f5a8a26075fd314712856c764ccc5e9a2907884739b2edae7b6b77849de6e49509a54676e
6
+ metadata.gz: 418d86fce0947a602c20e7eaa35ba6859b33ab742d0f9753d2307fd786c5ade29d510bd6df0e1880610902e4215231af0a3d32aedc9405b6f22fbce82ff599fa
7
+ data.tar.gz: 207cb4d34ac1a4a008c5f15f05d577e192d8d993630c27ef2a799616c6e6ea8a483e3ecac026cc68a234c71e0488e5806d056e3651f0bb28d49f89b975f6910f
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Simple Job
2
2
 
3
+ == Version 0.7.1
4
+ * Fixing :idle_timeout (wasn't resetting timeout on new messages)
5
+ * Fixing traps for ruby > 1.8 (new rubys add arguments to trap)
6
+
3
7
  == Version 0.7.0
4
8
  * Making JobDefinition objects usable in Rails form_for
5
9
 
@@ -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'])
@@ -1,3 +1,3 @@
1
1
  module SimpleJob
2
- VERSION = '0.7.0'
2
+ VERSION = '0.7.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Dawson