Class: WhittakerTech::Aeon::ProjectionJob
- Inherits:
-
ApplicationJob
- Object
- ActiveJob::Base
- ApplicationJob
- WhittakerTech::Aeon::ProjectionJob
- Defined in:
- app/jobs/whittaker_tech/aeon/projection_job.rb
Overview
Enqueue-able wrapper around Projector for asynchronous projection. Accepts serialisation-safe arguments (UUID string + ISO 8601 timestamp) so it can travel through any ActiveJob backend.
Instance Method Summary collapse
Instance Method Details
#perform(allocation_id, horizon_iso8601) ⇒ void
This method returns an undefined value.
18 19 20 21 22 23 |
# File 'app/jobs/whittaker_tech/aeon/projection_job.rb', line 18 def perform(allocation_id, horizon_iso8601) Projector.call( allocation_id: allocation_id, target_until: Time.iso8601(horizon_iso8601) ) end |