Skip to content
This repository has been archived by the owner on Apr 11, 2023. It is now read-only.

Commit

Permalink
updated mongoid job adapter
Browse files Browse the repository at this point in the history
Updated the mongoid job adapter to work with Mongoid 3.x
  • Loading branch information
Craig Wickesser committed Jan 22, 2014
1 parent 0fcb1cf commit a2eff90
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/navvy/job/mongoid.rb
Expand Up @@ -11,16 +11,16 @@ class Job
field :priority, :type => Integer, :default => 0 field :priority, :type => Integer, :default => 0
field :return, :type => String field :return, :type => String
field :exception, :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 :created_at, :type => Time
field :run_at, :type => Time field :run_at, :type => Time
field :started_at, :type => Time field :started_at, :type => Time
field :completed_at, :type => Time field :completed_at, :type => Time
field :failed_at, :type => Time field :failed_at, :type => Time


index [[:priority, Mongo::DESCENDING]] index({priority: -1})
index [[:created_at, Mongo::ASCENDING]] index({created_at: 1})

## ##
# Add a job to the job queue. # Add a job to the job queue.
# #
Expand Down

0 comments on commit a2eff90

Please sign in to comment.