coney_island 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coney_island/railtie.rb +1 -3
- data/lib/coney_island/version.rb +1 -1
- data/lib/coney_island/worker.rb +2 -2
- 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: 44725cf611da555358a93fedaf3a746e6047a8d7
|
4
|
+
data.tar.gz: 318c468580c9cb5223943aa5e91ddae0cf50c34b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0205e264d2ad3ec11c688d726fd042daed3a8a19a06831e1b075d4f9ea4589bc5f4253c7e229b01a045fdf37d39a16bf6f720c69777f14b9175c40d60f03f4c
|
7
|
+
data.tar.gz: faaf016ad416082503a9b37d66365d792cc8e84cb87e93f906c6167481e0b6461584bddc875e974f483b4b9a78bd88059a91b17dfdd1b57959497dfffb145009
|
data/lib/coney_island/railtie.rb
CHANGED
@@ -2,9 +2,7 @@ require 'coney_island/coney_island_adapter'
|
|
2
2
|
module ConeyIsland
|
3
3
|
class Railtie < Rails::Railtie
|
4
4
|
initializer "coney_island.coney_island_adapter" do
|
5
|
-
|
6
|
-
ActiveJob::QueueAdapters.send :autoload, :ConeyIslandAdapter
|
7
|
-
end
|
5
|
+
ActiveJob::QueueAdapters.send :autoload, :ConeyIslandAdapter
|
8
6
|
end
|
9
7
|
end
|
10
8
|
end
|
data/lib/coney_island/version.rb
CHANGED
data/lib/coney_island/worker.rb
CHANGED
@@ -141,7 +141,7 @@ module ConeyIsland
|
|
141
141
|
end
|
142
142
|
rescue Timeout::Error => e
|
143
143
|
ConeyIsland.poke_the_badger(e, {code_source: 'ConeyIsland', job_payload: args, reason: 'timeout in subscribe code before calling job method'})
|
144
|
-
rescue
|
144
|
+
rescue Exception => e
|
145
145
|
ConeyIsland.poke_the_badger(e, {code_source: 'ConeyIsland', job_payload: args})
|
146
146
|
self.log.error("ConeyIsland code error, not application code:\n#{e.inspect}\nARGS: #{args}")
|
147
147
|
end
|
@@ -166,7 +166,7 @@ module ConeyIsland
|
|
166
166
|
self.handle_job(metadata,args,job_id)
|
167
167
|
end
|
168
168
|
end
|
169
|
-
rescue
|
169
|
+
rescue Exception => e
|
170
170
|
ConeyIsland.poke_the_badger(e, {work_queue: @ticket, job_payload: args})
|
171
171
|
self.log.error("Error executing #{args['klass']}##{args['method_name']} #{job_id} for id #{args['instance_id']} with args #{args}:")
|
172
172
|
self.log.error(e.message)
|