Class: Protege::ResponsibilityTickJob

Inherits:
ApplicationJob
  • Object
show all
Defined in:
app/jobs/protege/responsibility_tick_job.rb

Overview

The Loop layer's clock — a thin recurring job the host registers to run every minute (Solid Queue recurring, alongside any other recurring tasks). Each tick hands off to Loop.dispatch, which enqueues a ResponsibilityJob for every responsibility due that minute. ActiveJob has no native recurring, so the recurrence itself is the host queue adapter's concern; the engine only ships this job class and the dispatch logic.

Instance Method Summary collapse

Instance Method Details

#performvoid

This method returns an undefined value.

Dispatch every responsibility due now.



15
16
17
# File 'app/jobs/protege/responsibility_tick_job.rb', line 15

def perform
  Loop.dispatch
end