coney_island 0.10.6 → 0.10.7

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: d4bc7fd9c381edf6bab4e5d22de63964dc3b8086
4
- data.tar.gz: e7e946605aaa6018311eb46be4dc27806ef96c1f
3
+ metadata.gz: 283cf2950b43c43a2d10dde4339f4375bead222d
4
+ data.tar.gz: 1b0e8e472b604abec938d58c959561defdb98347
5
5
  SHA512:
6
- metadata.gz: 9d3d208d00b1727e806514cadf28eafcd045f80fe99d4e0698d4251b48f8eb8ce50b5b35c7426c41dd3ffc0138d230333e6571ec9b36bdd42f7db881e6e41ab0
7
- data.tar.gz: 18f4b5df5b2cc18c4d1e81118e1ec5688de711febfabc46fffb82cbace13a67404ff55a05796283592162efd57e456c26155e92c9774afcd9c1faafa51fd2304
6
+ metadata.gz: e2768563c08726e7ee948fe748314a693af5f3dceadd15c03ee37800f03ebbc277ee7be65db29796ded2d1fd9cc62ac1403eab83a5f5745db4a0ed4d041da162
7
+ data.tar.gz: 3a2dc8647cb309ebe3599c575ed0875fcaf55fef2da33b0dc745a69c1756c4c010341b977dc1cb30ced1631190ef4cfcf2553c3e53ea55cf714f679a6d032e2f
@@ -1,7 +1,8 @@
1
1
  module ConeyIsland
2
2
  class Job
3
3
  attr_accessor :delay, :timeout, :method_name, :class_name, :klass, :method_args, :id, :args,
4
- :instance_id, :object, :metadata, :attempts, :retry_limit, :retry_on_exception
4
+ :instance_id, :object, :metadata, :attempts, :retry_limit, :retry_on_exception,
5
+ :initialization_errors
5
6
 
6
7
  def initialize(metadata, args)
7
8
  @args = args
@@ -33,6 +34,7 @@ module ConeyIsland
33
34
  end
34
35
  rescue Exception => e
35
36
  metadata.ack if !ConeyIsland.running_inline?
37
+ self.initialization_errors = true
36
38
  log.error("Error initializing with args #{args}:")
37
39
  log.error(e.message)
38
40
  log.error(e.backtrace.join("\n"))
@@ -1,3 +1,3 @@
1
1
  module ConeyIsland
2
- VERSION = "0.10.6"
2
+ VERSION = "0.10.7"
3
3
  end
@@ -163,7 +163,7 @@ module ConeyIsland
163
163
  def self.handle_incoming_message(metadata,payload)
164
164
  args = JSON.parse(payload)
165
165
  job = Job.new(metadata, args)
166
- job.handle_job
166
+ job.handle_job unless job.initialization_errors
167
167
  rescue Exception => e
168
168
  metadata.ack if !ConeyIsland.running_inline?
169
169
  ConeyIsland.poke_the_badger(e, {code_source: 'ConeyIsland', job_payload: args})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coney_island
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.6
4
+ version: 0.10.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Draut