An employee who worked a few days ago stops working for some reason.Resque log reports exception Mongo::OperationFailurewith errorinvalid operator: $oid
class SimilarTargets
@queue = :similar_queue
def self.perform(target_id)
source_target = Target.find(target_id)
....
end
end
The worker does not work with Target.find (target_id), even when a straight line is passed through the rails console.
Target.find (id) works fine in the console and elsewhere in the code, and I cannot understand why this happened, although the working class never changed last week.
source
share