Class: SolidQueueWeb::Job

Inherits:
Object
  • Object
show all
Defined in:
app/models/solid_queue_web/job.rb

Constant Summary collapse

STATUSES =
%w[ready scheduled claimed blocked failed].freeze
DISCARDABLE =
%w[ready scheduled blocked].freeze
EXECUTION_MODELS =
{
  "ready"     => SolidQueue::ReadyExecution,
  "scheduled" => SolidQueue::ScheduledExecution,
  "claimed"   => SolidQueue::ClaimedExecution,
  "blocked"   => SolidQueue::BlockedExecution,
  "failed"    => SolidQueue::FailedExecution
}.freeze