Class: Resque::JobWithState

Inherits:
Object
  • Object
show all
Includes:
Plugins::State
Defined in:
lib/resque/job_with_state.rb

Overview

Add the class for stateful jobs

Constant Summary

Constants included from Plugins::State

Plugins::State::STATUSES, Plugins::State::STATUS_COMPLETED, Plugins::State::STATUS_FAILED, Plugins::State::STATUS_KILLED, Plugins::State::STATUS_PAUSED, Plugins::State::STATUS_QUEUED, Plugins::State::STATUS_REVERTED, Plugins::State::STATUS_REVERTING, Plugins::State::STATUS_WAITING, Plugins::State::STATUS_WORKING, Plugins::State::VERSION

Instance Attribute Summary

Attributes included from Plugins::State

#options, #uuid

Method Summary

Methods included from Plugins::State

#at, #completed, #failed, included, #initialize, #kill!, #lock!, #locked?, #name, #pause!, #revert!, #reverted, #safe_perform!, #should_kill?, #should_pause?, #should_revert?, #status, #status=, #tick, #unlock!