collectiveidea/delayed_job_mongoid — pull request #38 by srleo (2013-04-23 05:47:44+00:00)
Title: Fixes issue #23 identity map not cleared

Resets the identity map at the beginning of each job.

Without this, if mongoid's identity map is enabled, DJ acts truly bizarre, using stale versions of objects seemingly at random. I lose a solid week to this.

Patch taken from @gurgeous.