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

Attributes inherited from Model

#client

Instance Method Summary collapse

Methods inherited from Job

#debug, #end_at, #error?, #finished?, #kill!, #killed?, #query, #result, #result_each, #result_format, #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.



372
373
374
375
# File 'lib/td/client/model.rb', line 372

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

Instance Method Details

#scheduled_atObject



377
378
379
# File 'lib/td/client/model.rb', line 377

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