def delete(self, job_id): """ Cancel a query job in progress. """ job = Job.fetch(job_id) job.cancel()
def get(self, job_id, query_id=None): """ Retrieve info about a running query job. """ job = Job.fetch(job_id) return serialize_job(job)