Method: CloudCrowd::WorkUnit.start
- Defined in:
- lib/cloud_crowd/models/work_unit.rb
.start(job, action, input, status) ⇒ Object
Convenience method for starting a new WorkUnit.
108 109 110 111 |
# File 'lib/cloud_crowd/models/work_unit.rb', line 108 def self.start(job, action, input, status) input = input.to_json unless input.is_a? String self.create(:job => job, :action => action, :input => input, :status => status) end |