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
Attributes inherited from Job
#db_name, #hive_result_schema, #job_id, #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.
- #scheduled_at ⇒ Object
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_at ⇒ Object
377 378 379 |
# File 'lib/td/client/model.rb', line 377 def scheduled_at @scheduled_at ? Time.parse(@scheduled_at) : nil end |