Class: JobsDashboard::JobLog

Inherits:
ApplicationRecord show all
Defined in:
app/models/jobs_dashboard/job_log.rb

Constant Summary collapse

STATUSES =
{
  queued: 'queued',
  working: 'working',
  retrying: 'retrying',
  complete: 'complete',
  failed: 'failed',
  interrupted: 'interrupted'
}.freeze

Class Method Summary collapse

Class Method Details

.ransackable_attributes(auth_object = nil) ⇒ Object



34
35
36
37
38
39
40
41
42
43
# File 'app/models/jobs_dashboard/job_log.rb', line 34

def self.ransackable_attributes(auth_object = nil)
  [
    "sidekiq_jid",
    "item_type",
    "queue",
    "status",
    "created_at", 
    "finished_at", 
  ]
end