Class: Jobs::ScheduledController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/panoptic/jobs/scheduled_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



7
8
9
10
11
12
13
14
# File 'app/controllers/panoptic/jobs/scheduled_controller.rb', line 7

def index
  # TODO: use the `scheduled` scope available in SolidQueue next release
  @pagy, @jobs = pagy(
    SolidQueue::Job.joins(:scheduled_execution).order(scheduled_at: :asc)
  )

  render "panoptic/jobs/index"
end