Sha256: 09c07d160c0e2feda0246ef54e743ff81551ddff8254279a665804a819097754

Contents?: true

Size: 361 Bytes

Versions: 1

Compression:

Stored size: 361 Bytes

Contents

# frozen_string_literal: true

module Panoptic
  class Jobs::ScheduledController < ApplicationController
    def index
      # TODO: use the `scheduled` scope available in SolidQueue next release
      @pagy, @jobs = pagy(
        SolidQueue::Job.joins(:scheduled_execution).order(created_at: :asc)
      )

      render "panoptic/jobs/index"
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
panoptic-0.2.0 app/controllers/panoptic/jobs/scheduled_controller.rb