rabbit_jobs 0.11.1 → 0.11.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rabbit_jobs.rb +1 -0
- data/lib/rabbit_jobs/publisher/amqp.rb +2 -2
- data/lib/rabbit_jobs/version.rb +1 -1
- data/lib/rabbit_jobs/worker.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8d4a58dc128a14b5144faf0c170798cf0d12d6df
|
4
|
+
data.tar.gz: ac9ec25b01a051bd63aa20ab1f118b004aea4c0d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3b8c9fe040e2c5ac634fd78fc51480d64009389be92fe67001eb7562119ec67c55f1768b1901b8a844a11a620da7b34b84e48b583f3d393e0f976a6035874fb
|
7
|
+
data.tar.gz: 3fb4803eae1ac51cc52262d409209f7d2210ae631dcaf126094728ca896835157b75a5f512f5bdee7fb17a03901c4cf5e56ba6920a11b4957f33534d1b90033c
|
data/lib/rabbit_jobs.rb
CHANGED
@@ -7,6 +7,7 @@ require 'yaml'
|
|
7
7
|
require 'active_support/core_ext/object/blank'
|
8
8
|
require 'active_support/core_ext/hash'
|
9
9
|
require 'active_support/core_ext/string/inflections'
|
10
|
+
require 'active_support/core_ext/module/delegation'
|
10
11
|
|
11
12
|
require 'rabbit_jobs/version'
|
12
13
|
require 'rabbit_jobs/configuration'
|
@@ -66,8 +66,8 @@ module RabbitJobs
|
|
66
66
|
|
67
67
|
def connection
|
68
68
|
unless settings[:connection]
|
69
|
-
settings[:connection] = Bunny.new(RabbitJobs.config.server
|
70
|
-
|
69
|
+
settings[:connection] = Bunny.new(RabbitJobs.config.server,
|
70
|
+
properties: Bunny::Session::DEFAULT_CLIENT_PROPERTIES.merge(product: "rj_scheduler #{Process.pid}")).start
|
71
71
|
end
|
72
72
|
settings[:connection]
|
73
73
|
end
|
data/lib/rabbit_jobs/version.rb
CHANGED
data/lib/rabbit_jobs/worker.rb
CHANGED
@@ -13,7 +13,8 @@ module RabbitJobs
|
|
13
13
|
end
|
14
14
|
|
15
15
|
def amqp_connection
|
16
|
-
Thread.current[:rj_worker_connection] ||= Bunny.new(RabbitJobs.config.server, automatically_recover: false
|
16
|
+
Thread.current[:rj_worker_connection] ||= Bunny.new(RabbitJobs.config.server, automatically_recover: false,
|
17
|
+
properties: Bunny::Session::DEFAULT_CLIENT_PROPERTIES.merge(product: "rj_worker #{Process.pid}")).start
|
17
18
|
end
|
18
19
|
|
19
20
|
def self.cleanup
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbit_jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Lazureykis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bunny
|