bluepill-gearman 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/Changelog.md +2 -0
- data/lib/bluepill-gearman/version.rb +1 -1
- data/lib/bluepill-gearman.rb +2 -6
- metadata +2 -2
data/.gitignore
CHANGED
data/Changelog.md
CHANGED
data/lib/bluepill-gearman.rb
CHANGED
|
@@ -19,8 +19,7 @@ module Bluepill
|
|
|
19
19
|
* queue: default queue is 'check_results'
|
|
20
20
|
* key: provide a key for encryption (minimum 8 bytes)
|
|
21
21
|
* encryption: default to false set to true to enable
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
|
|
24
23
|
See checks https://github.com/arya/bluepill for the syntax to pass those options
|
|
25
24
|
encryption: https://gist.github.com/RiANOl/1077760
|
|
26
25
|
INFO
|
|
@@ -32,8 +31,7 @@ module Bluepill
|
|
|
32
31
|
:service => options.delete(:service) || process.name,
|
|
33
32
|
:queue => options.delete(:queue) || 'check_results',
|
|
34
33
|
:key => options.delete(:key) || '',
|
|
35
|
-
:encryption => options.delete(:encryption) || false
|
|
36
|
-
:every => options.delete(:every) || 1.minute
|
|
34
|
+
:encryption => options.delete(:encryption) || false
|
|
37
35
|
}
|
|
38
36
|
super
|
|
39
37
|
end
|
|
@@ -97,8 +95,6 @@ EOT
|
|
|
97
95
|
result = client.do_task(args[:queue], encoded_job)
|
|
98
96
|
|
|
99
97
|
logger.info "Sent Job to Gearman Server #{result}"
|
|
100
|
-
logger.info "Next job status passive check: #{args[:every]}"
|
|
101
|
-
sleep(args[:every])
|
|
102
98
|
rescue Exception => e
|
|
103
99
|
logger.warn "Failed to send job to the Gearman Server: #{e}"
|
|
104
100
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bluepill-gearman
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.2
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-
|
|
12
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bluepill
|