I am using delayed_job and delayed_job_active_record for back ground job execution in my rails application. We are using queue based delayed_job. For starting the delayed I am u
i had to use AR's silence
method, just change in file [path/to/delayed_job_active_record/gem]/delayed_job_active_record-[any.latest.version]/lib/delayed/backend/active_record.rb
around line 68:
count = ready_scope.limit(1).update_all(:locked_at => now, :locked_by => worker.name)
to
count = silence {ready_scope.limit(1).update_all(:locked_at => now, :locked_by => worker.name)}
dirty solution, i know, but it works... welcome to propose a better wrapper, but for me Job.reserve
method there is big enough to kill any thoughts to override it in config/initializers