class Databricks::Resources::Job

Public Instance Methods

delete() click to toggle source

Delete this job

# File lib/databricks/resources/job.rb, line 24
def delete
  post_json('jobs/delete', { job_id: job_id })
end
reset(**properties) click to toggle source

Reset properties of this job.

Parameters
  • properties (Hash<Symbol,Object>): New job's properties

# File lib/databricks/resources/job.rb, line 11
def reset(**properties)
  # Make sure we don't change its ID
  post_json(
    'jobs/reset',
    {
      job_id: job_id,
      new_settings: properties
    }
  )
  add_properties(properties.merge(job_id: job_id), replace: true)
end