module Bookie::ModelHelpers
This module is mixed into various job classes used internally by senders.
Public Instance Methods
end_time()
click to toggle source
# File lib/bookie/sender.rb, line 164 def end_time start_time + wall_time end
to_record()
click to toggle source
Converts the object to a Bookie::Database::Job
# File lib/bookie/sender.rb, line 153 def to_record() job = Bookie::Database::Job.new job.command_name = self.command_name job.start_time = self.start_time job.wall_time = self.wall_time job.cpu_time = self.cpu_time job.memory = self.memory job.exit_code = self.exit_code job end