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, #num_records, #org_name, #priority, #result_url, #retry_limit, #type

Attributes inherited from Model

#client

Instance Method Summary collapse

Methods inherited from Job

#auto_update_status=, #auto_update_status?, #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:



669
670
671
672
673
674
675
676
# File 'lib/td/client/model.rb', line 669

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.



664
665
666
# File 'lib/td/client/model.rb', line 664

def scheduled_at
  @scheduled_at
end