just updated to the latest version of mongoid (3.1.0) and sidekiq (2.7.2)
now i\'m getting the error : failed with error 10068: \"invalid operator: $oid\"
This is actually happening because BSON::ObjectId is not part of JSON... so when Sidekiq tries to serialize the args to the worker, it pukes. Check out this comment: https://github.com/mperham/sidekiq/issues/951#issuecomment-19497803
The fix is simply to convert IDs to strings when performing a job like:
EmailSubscribe.perform_async(user.id.to_s)