Module: Rhoconnect::Handler::Helpers::SourceJob

Included in:
Changes::Engine, Query::Engine
Defined in:
lib/rhoconnect/handler/helpers/source_job.rb

Instance Method Summary collapse

Instance Method Details

#async(job_type, queue_name, params = nil) ⇒ Object

Enqueue a job for the source based on job type



6
7
8
9
10
# File 'lib/rhoconnect/handler/helpers/source_job.rb', line 6

def async(job_type,queue_name,params=nil)
 	  Rhoconnect::SourceJob.queue = queue_name
     Resque.enqueue(Rhoconnect::SourceJob,job_type,@source.id,
                    @source.app_id,@source.user_id,params)
end