def cancel_job(job_path, opts = {})
      url     = job_url(job_path, 'live/cancel')

      body = '{}'

      opts[:data] = body

      headers = gen_headers(opts)

      headers << [ 'Accept', 'application/json' ]
      headers << [ 'Content-Type', 'application/json']
      headers << [ 'Content-Length', body.bytesize ]

      args = {
          header: headers,
          body: body
      }

      attempt(opts[:attempts]) do
        result = @client.post(url, args)
        raise unless result.is_a? HTTP::Message

        return true, result.headers if result.status == 202
        raise_error(result)
      end
    end
def cancel_job(job_path, opts = {})
      url     = job_url(job_path, 'live/cancel')

      body = '{}'

      opts[:data] = body

      headers = gen_headers(opts)

      headers << [ 'Accept', 'application/json' ]
      headers << [ 'Content-Type', 'application/json']
      headers << [ 'Content-Length', body.bytesize ]

      args = {
          header: headers,
          body: body
      }

      attempt(opts[:attempts]) do
        result = @client.post(url, args)
        raise unless result.is_a? HTTP::Message

        return true, result.headers if result.status == 202
        raise_error(result)
      end
    end
Cancels a running job in Manta at a given path.

 The path must start with /<user>/jobs/<job UUID> and point at an actual job.

 Returns true, along with received HTTP headers.

 If there was an unrecoverable error, throws an exception. On connection or
 corruption errors, more attempts will be made; the number of attempts can
 be altered by passing in :attempts.