예제 #1
0
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
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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
예제 #5
0
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
예제 #6
0
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