From dd8e859829bfcfd8cb0287ce804055b827a35af1 Mon Sep 17 00:00:00 2001 From: Kevin Deisz Date: Sun, 26 Apr 2015 13:05:08 -0400 Subject: Get provider_job_id from DelayedJob When queueing with DelayedJob, get the id of the job instance and report it back to ActiveJob as provider_job_id. --- activejob/lib/active_job/core.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'activejob/lib/active_job/core.rb') diff --git a/activejob/lib/active_job/core.rb b/activejob/lib/active_job/core.rb index acdfcdc791..0528572cd0 100644 --- a/activejob/lib/active_job/core.rb +++ b/activejob/lib/active_job/core.rb @@ -17,6 +17,9 @@ module ActiveJob # Queue in which the job will reside. attr_writer :queue_name + + # ID optionally provided by adapter + attr_accessor :provider_job_id end # These methods will be included into any Active Job object, adding -- cgit v1.2.3