Class: Ripe::DB::Task

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/ripe/db/task.rb

Overview

This class represents a Task object in ripe’s internal database. Its fields are defined by Ripe::DB::TaskMigration.

See Also:

Instance Method Summary collapse

Instance Method Details

#dirObject

Return path to task directory, which is the same as worker directory.



17
18
19
# File 'lib/ripe/db/task.rb', line 17

def dir
  "#{self.worker.dir}"
end

#logObject

Return path to task-level combined stdout and stderr log.



24
25
26
# File 'lib/ripe/db/task.rb', line 24

def log
  "#{self.dir}/#{self.id}.log"
end

#shObject

Return path to task-level job script, which only includes the task at hand. This script is never actually executed by ripe.

See Also:



34
35
36
# File 'lib/ripe/db/task.rb', line 34

def sh
  "#{self.dir}/#{self.id}.sh"
end