bushpig 0.1.11 → 0.1.12

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
  SHA256:
3
- metadata.gz: 6e851a30d506853e4b90dc634602965ea520d0499a72edf92c5ee0cf3ea39f10
4
- data.tar.gz: ef79c0b258b38f10739dd3b6c5496afd2547401bf65586f381b700e582a5d651
3
+ metadata.gz: 74a53f240f755c6d98d37f2790ac903fb3b6fd2b2470341c2dc357579605f51e
4
+ data.tar.gz: ddfc8337f32005071b941ea1dd6e1e1599fb7b27a8c2b3e72b941c95be26d25a
5
5
  SHA512:
6
- metadata.gz: 928d495049bd4d9ab65d6255f4f8743bae42de26eb66f7d5f3ba84992536c90b27daca7693b90f6de85d58058ed8739d0a1db2fcd814f18c504049dc0cb5fa34
7
- data.tar.gz: 5708e74eff120f8b9e8488d72debe2a573ff53f1ed2b99408d80faf40d1e2e0511bce5f197e468f0efb9e84c0c85f2906f439f726b118a6ad9fa489a2d70e78b
6
+ metadata.gz: cb792068441f32529b3075a9972a7f96c09cdcd64649dfa3d9a145e9bfb77502e85841ec9526a9612073a6d44b9f5f83951c0a458ce790ee0afe82330548a8d5
7
+ data.tar.gz: 578ab0ac3b7e9a69a8be8cd5df311caea42824267cfb44960b9519fe22015c56156b024082d8dd9e6d7e13bc949e54bce4357f21ff1420b7a6d3da31d4bbcadc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bushpig (0.1.11)
4
+ bushpig (0.1.12)
5
5
  connection_pool (~> 2.2)
6
6
  json (>= 1.8)
7
7
  redis (~> 3.3)
data/gemset.nix CHANGED
@@ -186,7 +186,7 @@
186
186
  path = ./.;
187
187
  type = "path";
188
188
  };
189
- version = "0.1.11";
189
+ version = "0.1.12";
190
190
  };
191
191
  coderay = {
192
192
  groups = ["default" "development"];
@@ -37,7 +37,10 @@ module Bushpig
37
37
 
38
38
  until @done
39
39
  job = fetch(queue)
40
- next if job.nil?
40
+ if job.nil?
41
+ ActiveRecord::Base.clear_active_connections!
42
+ next
43
+ end
41
44
 
42
45
  handle(job)
43
46
  complete(job)
@@ -59,6 +62,7 @@ module Bushpig
59
62
  elapsed = finished - started
60
63
  puts "Job raised exception: jid-#{job.job_id} #{elapsed} seconds: #{e}"
61
64
  notify_exception(job, e)
65
+ ActiveRecord::Base.clear_active_connections!
62
66
  end
63
67
 
64
68
  def honeybadger
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bushpig
4
- VERSION = '0.1.11'
4
+ VERSION = '0.1.12'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bushpig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun Sharples