em-beanstalk 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/em-beanstalk.rb +2 -0
- data/lib/em-beanstalk/job.rb +4 -0
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.10
|
data/lib/em-beanstalk.rb
CHANGED
@@ -179,6 +179,8 @@ module EM
|
|
179
179
|
|
180
180
|
def release(val, opts = nil, &block)
|
181
181
|
return if val.nil?
|
182
|
+
delay = opts && opts[:delay] || default_delay
|
183
|
+
priority = opts && opts[:priority] || default_priority
|
182
184
|
@conn.send(:release, job_id(val), priority.to_i, delay.to_i)
|
183
185
|
add_deferrable(&block)
|
184
186
|
end
|
data/lib/em-beanstalk/job.rb
CHANGED