Class: Bramble::BeginJob

Inherits:
BaseJob
  • Object
show all
Defined in:
lib/bramble/begin_job.rb

Overview

This exists to call ‘implementation.items` in the background. It might take a long time to fetch, so let’s background it.

Then it starts the map-reduce job.

Instance Method Summary collapse

Instance Method Details

#perform(handle, implementation_name, items_options) ⇒ Object



7
8
9
10
11
# File 'lib/bramble/begin_job.rb', line 7

def perform(handle, implementation_name, items_options)
  implementation = implementation_name.constantize
  all_items = implementation.items(items_options)
  Bramble::Map.perform(handle, implementation, all_items)
end