Class: TreasureData::ScheduledJob
- 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
-
#scheduled_at ⇒ Object
readonly
Returns the value of attribute scheduled_at.
Attributes inherited from Job
#db_name, #duration, #job_id, #num_records, #org_name, #priority, #result_url, #retry_limit, #type
Attributes inherited from Model
Instance Method Summary collapse
-
#initialize(client, scheduled_at, *super_args) ⇒ ScheduledJob
constructor
A new instance of ScheduledJob.
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.
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_at ⇒ Object (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 |