resque-igo 1.12.3 → 1.12.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/resque.rb +2 -1
- data/lib/resque/version.rb +1 -1
- metadata +3 -3
data/lib/resque.rb
CHANGED
@@ -182,7 +182,8 @@ module Resque
|
|
182
182
|
query['delay_until'] = { '$not' => { '$gt' => Time.new}}
|
183
183
|
end
|
184
184
|
#sorting will result in significant performance penalties for large queues, you have been warned.
|
185
|
-
|
185
|
+
#this applies to _id, too. it'd be nice, but it won't work, so don't try it.
|
186
|
+
item = mongo[queue].find_and_modify(:query => query, :remove => true) #, :sort => [[:_id, :asc]] )
|
186
187
|
rescue Mongo::OperationFailure => e
|
187
188
|
return nil if e.message =~ /No matching object/
|
188
189
|
raise e
|
data/lib/resque/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-igo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 47
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 12
|
9
|
-
-
|
10
|
-
version: 1.12.
|
9
|
+
- 4
|
10
|
+
version: 1.12.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Nathan D Acuff
|