lib/acidic_job/run.rb in acidic_job-1.0.0.beta.1 vs lib/acidic_job/run.rb in acidic_job-1.0.0.beta.2
- old
+ new
@@ -115,10 +115,10 @@
def stage!(job)
create!(
staged: true,
job_class: job.class.name,
serialized_job: job.serialize,
- idempotency_key: job.idempotency_key
+ idempotency_key: job.try(:idempotency_key) || job.job_id
)
end
end
private