class MerrittZK::JobState
State transition for Merritt Ingest Jobs
Constants
- Completed
- Deleted
- Downloading
- Estimating
- Failed
- Held
- Notify
- Pending
- Processing
- Provisioning
- Recording
Attributes
states[R]
Public Class Methods
init()
click to toggle source
# File lib/merritt_zk_job_state.rb, line 37 def self.init Pending end
Public Instance Methods
fail()
click to toggle source
# File lib/merritt_zk_job_state.rb, line 49 def fail fail_lookup(JobState.states) end
state_change(state)
click to toggle source
# File lib/merritt_zk_job_state.rb, line 41 def state_change(state) state_lookup(JobState.states, state) end
success()
click to toggle source
# File lib/merritt_zk_job_state.rb, line 45 def success success_lookup(JobState.states) end