webmat-delayed_job 1.7.1 → 1.7.2
Sign up to get free protection for your applications and to get access to all the features.
- data/delayed_job.gemspec +1 -1
- data/lib/delayed/job.rb +1 -1
- metadata +1 -1
data/delayed_job.gemspec
CHANGED
data/lib/delayed/job.rb
CHANGED
@@ -20,7 +20,7 @@ module Delayed
|
|
20
20
|
# There are some advantages to overriding this with something which survives worker retarts:
|
21
21
|
# Workers can safely resume working on tasks which are locked by themselves. The worker will assume that it crashed before.
|
22
22
|
cattr_accessor :worker_name
|
23
|
-
def worker_name
|
23
|
+
def self.worker_name
|
24
24
|
@@worker_name ||= "host:#{Socket.gethostname} pid:#{Process.pid}" rescue "pid:#{Process.pid}"
|
25
25
|
end
|
26
26
|
|