steve 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/steve/queued_job.rb +1 -1
- data/lib/steve.rb +3 -0
- metadata +2 -2
data/lib/steve/queued_job.rb
CHANGED
@@ -55,7 +55,7 @@ module Steve
|
|
55
55
|
if @child = fork
|
56
56
|
rand
|
57
57
|
Steve.log "[#{job.id}] Forked to #{@child}"
|
58
|
-
$0 = "sj: forked to #{@child} at #{Time.now.utc.to_s(:db)}"
|
58
|
+
$0 = "sj: forked to #{@child} at #{Time.now.utc.to_s(:db)}" unless Steve.keep_parent_process_name
|
59
59
|
ActiveRecord::Base.establish_connection
|
60
60
|
Process.wait
|
61
61
|
else
|
data/lib/steve.rb
CHANGED
@@ -26,6 +26,9 @@ module Steve
|
|
26
26
|
## Proc to run after forking
|
27
27
|
attr_accessor :after_job_fork
|
28
28
|
|
29
|
+
## Allow parent process name to be kept
|
30
|
+
attr_accessor :keep_parent_process_name
|
31
|
+
|
29
32
|
## Return the worker name for this current process/host
|
30
33
|
def worker_name
|
31
34
|
"host:#{Socket.gethostname} pid:#{Process.pid}" rescue "pid:#{Process.pid}"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: steve
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
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: 2012-03-
|
12
|
+
date: 2012-03-19 00:00:00.000000000Z
|
13
13
|
dependencies: []
|
14
14
|
description:
|
15
15
|
email: support@atechmedia.com
|