Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #15 from mindscratch/develop

updated mongoid job adapter
  • Loading branch information...
commit 25b337e532b0316a5b14d06c7bdd38d898626482 2 parents 0fcb1cf + a2eff90
Craig Wickesser authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/navvy/job/mongoid.rb
View
8 lib/navvy/job/mongoid.rb
@@ -11,16 +11,16 @@ class Job
field :priority, :type => Integer, :default => 0
field :return, :type => String
field :exception, :type => String
- field :parent_id, :type => BSON::ObjectId
+ field :parent_id, :type => Moped::BSON::ObjectId
field :created_at, :type => Time
field :run_at, :type => Time
field :started_at, :type => Time
field :completed_at, :type => Time
field :failed_at, :type => Time
- index [[:priority, Mongo::DESCENDING]]
- index [[:created_at, Mongo::ASCENDING]]
-
+ index({priority: -1})
+ index({created_at: 1})
+
##
# Add a job to the job queue.
#
Please sign in to comment.
Something went wrong with that request. Please try again.