Class: Services::ApplicationMdsContext

Inherits:
Object
  • Object
show all
Defined in:
app/contexts/services/application_mds_context.rb

Constant Summary collapse

TIME_TO_RUN =
36000
PRIORITY =
500
ASYNC_SEND_OPTIONS =
{ :priority => PRIORITY, :time_to_run => TIME_TO_RUN }

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.mds_processing_contextObject

Returns the value of attribute mds_processing_context.



10
11
12
# File 'app/contexts/services/application_mds_context.rb', line 10

def mds_processing_context
  @mds_processing_context
end

Class Method Details

.call(mds_upload) ⇒ Object



12
13
14
15
# File 'app/contexts/services/application_mds_context.rb', line 12

def call(mds_upload)
  raise "Must configure an MDS Processing context!" unless mds_processing_context.present?
  mds_processing_context.ayl_send_opts(:call, ASYNC_SEND_OPTIONS, mds_upload)
end