def halt(): """Halt the Pipeline2""" keyfile = "{0}/dp2key.txt".format(tempfile.gettempdir()) f = open(keyfile) key = f.read() f.close() uri = "{0}/admin/halt/{1}".format(settings.BASEURI, key) doc = rest.get_resource(uri) return doc
def get_result(job_id): """Return an XML document for the result of a given job""" uri = "{0}/jobs/{1}/result".format(settings.BASEURI, job_id) doc = rest.get_resource(uri) return doc
def get_log(job_id): """Return the log data for a given job as a string""" uri = "{0}/jobs/{1}/log".format(settings.BASEURI, job_id) doc = rest.get_resource(uri) return doc