packet 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/packet.rb +1 -1
- data/lib/packet_master.rb +4 -1
- metadata +1 -1
data/lib/packet.rb
CHANGED
data/lib/packet_master.rb
CHANGED
@@ -98,7 +98,10 @@ module Packet
|
|
98
98
|
worker_name_key = gen_worker_key(worker_name,worker_options[:job_key])
|
99
99
|
return if @live_workers[worker_name_key]
|
100
100
|
worker_options.delete(:worker)
|
101
|
-
|
101
|
+
begin
|
102
|
+
require worker_name
|
103
|
+
rescue LoadError
|
104
|
+
end
|
102
105
|
worker_klass = Object.const_get(packet_classify(worker_name))
|
103
106
|
fork_and_load(worker_klass,worker_options)
|
104
107
|
end
|