Module: PredicsisMlSdk::JobStuff
- Included in:
- Dataset, Dictionary, ModalitiesSet, Model, PreparationRulesSet, Report, Source
- Defined in:
- lib/predicsis_ml_sdk/job_stuff.rb
Instance Attribute Summary collapse
-
#job ⇒ Object
Returns the value of attribute job.
Instance Method Summary collapse
Instance Attribute Details
#job ⇒ Object
Returns the value of attribute job.
3 4 5 |
# File 'lib/predicsis_ml_sdk/job_stuff.rb', line 3 def job @job end |
Instance Method Details
#jobs ⇒ Object
5 6 7 8 9 |
# File 'lib/predicsis_ml_sdk/job_stuff.rb', line 5 def jobs Job.all(@token).select do |job| job.runnable_id.eql? @id end end |
#terminated? ⇒ Boolean
16 17 18 19 |
# File 'lib/predicsis_ml_sdk/job_stuff.rb', line 16 def terminated? return true if @job_ids.empty? job.terminated? end |
#wait_for_result ⇒ Object
21 22 23 24 25 |
# File 'lib/predicsis_ml_sdk/job_stuff.rb', line 21 def wait_for_result return if @job_ids.empty? sleep(1) until job.terminated? get end |