Class: OctaSpace::Resources::IdleJobs
- Defined in:
- lib/octaspace/resources/idle_jobs.rb
Overview
Idle Jobs API endpoints
Each idle job is identified by both a node ID and a job ID.
Instance Method Summary collapse
-
#find(node_id:, job_id:) ⇒ OctaSpace::Response
Fetch a single idle job status GET /idle_jobs/:node_id/:job_id.
-
#logs(node_id:, job_id:) ⇒ OctaSpace::Response
Fetch idle job logs GET /idle_jobs/:node_id/:job_id/logs.
Methods inherited from Base
Constructor Details
This class inherits a constructor from OctaSpace::Resources::Base
Instance Method Details
#find(node_id:, job_id:) ⇒ OctaSpace::Response
Fetch a single idle job status GET /idle_jobs/:node_id/:job_id
18 19 20 |
# File 'lib/octaspace/resources/idle_jobs.rb', line 18 def find(node_id:, job_id:) get("/idle_jobs/#{encode(node_id)}/#{encode(job_id)}") end |
#logs(node_id:, job_id:) ⇒ OctaSpace::Response
Fetch idle job logs GET /idle_jobs/:node_id/:job_id/logs
27 28 29 |
# File 'lib/octaspace/resources/idle_jobs.rb', line 27 def logs(node_id:, job_id:) get("/idle_jobs/#{encode(node_id)}/#{encode(job_id)}/logs") end |