Sha256: 6e2d01343e33eac53d6e0857317bfddd828d680f7951befe9d69e4dc5724e76b

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

# frozen_string_literal: true

module Panoptic
  class Jobs::ScheduledController < ApplicationController
    layout "panoptic/jobs"

    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

3 entries across 3 versions & 1 rubygems

Version Path
panoptic-0.4.1 app/controllers/panoptic/jobs/scheduled_controller.rb
panoptic-0.4.0 app/controllers/panoptic/jobs/scheduled_controller.rb
panoptic-0.3.0 app/controllers/panoptic/jobs/scheduled_controller.rb