Class: TreasureData::ScheduledJob

Inherits:
Job
  • Object
show all
Defined in:
lib/td/client/model.rb

Constant Summary

Constants inherited from Job

Job::FINISHED_STATUS, Job::STATUS_BOOTING, Job::STATUS_ERROR, Job::STATUS_KILLED, Job::STATUS_QUEUED, Job::STATUS_RUNNING, Job::STATUS_SUCCESS

Instance Attribute Summary

Attributes inherited from Job

#db_name, #job_id, #org_name, #priority, #result_url, #retry_limit, #type

Attributes inherited from Model

#client

Instance Method Summary collapse

Methods inherited from Job

#cpu_time, #debug, #end_at, #error?, #finished?, #hive_result_schema, #kill!, #killed?, #query, #queued?, #result, #result_each, #result_each_with_compr_size, #result_format, #result_size, #running?, #start_at, #status, #success?, #update_progress!, #update_status!, #url, #wait

Constructor Details

#initialize(client, scheduled_at, *super_args) ⇒ ScheduledJob

Returns a new instance of ScheduledJob.



429
430
431
432
# File 'lib/td/client/model.rb', line 429

def initialize(client, scheduled_at, *super_args)
  super(client, *super_args)
  @scheduled_at = scheduled_at
end

Instance Method Details

#scheduled_atObject



434
435
436
# File 'lib/td/client/model.rb', line 434

def scheduled_at
  @scheduled_at ? Time.parse(@scheduled_at) : nil
end