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 collapse

Attributes inherited from Job

#db_name, #duration, #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_raw, #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.

Parameters:



632
633
634
635
636
637
638
639
# File 'lib/td/client/model.rb', line 632

def initialize(client, scheduled_at, *super_args)
  super(client, *super_args)
  if scheduled_at.to_s.empty?
    @scheduled_at = nil
  else
    @scheduled_at = Time.parse(scheduled_at) rescue nil
  end
end

Instance Attribute Details

#scheduled_atObject (readonly)

Returns the value of attribute scheduled_at.



627
628
629
# File 'lib/td/client/model.rb', line 627

def scheduled_at
  @scheduled_at
end