Ejemplo n.º 1
0
def update_status(spec_id, status, arch=None):
    host = settings.SERVER.rstrip('/')
    url = URL_UPDATE_STATUS % {'host': host, 'spec_id': spec_id}

    param = {'status': status}
    if arch is not None:
        param['arch'] = arch
    send_message(url, param)
Ejemplo n.º 2
0
def update_status(spec_id, status, arch=None):
    host = settings.SERVER.rstrip("/")
    url = URL_UPDATE_STATUS % {"host": host, "spec_id": spec_id}

    param = {"status": status}
    if arch is not None:
        param["arch"] = arch
    send_message(url, param)
Ejemplo n.º 3
0
def get_keys():
    host = settings.SERVER.rstrip("/")
    url = URL_KEYS % {"host": host}

    return send_message(url)
Ejemplo n.º 4
0
def send_log(spec_id, logfile):
    host = settings.SERVER.rstrip("/")
    url = URL_SUBMIT_LOG % {"host": host, "spec_id": spec_id}

    param = {"log": open(logfile)}
    send_message(url, param)
Ejemplo n.º 5
0
def get_task_info(task_id):
    host = settings.SERVER.rstrip("/")
    url = URL_TASK_INFO % {"host": host, "task_id": task_id}

    return json.loads(send_message(url))
Ejemplo n.º 6
0
def get_spec_info(spec_id):
    host = settings.SERVER.rstrip("/")
    url = URL_SPEC_INFO % {"host": host, "spec_id": spec_id}

    return json.loads(send_message(url))
Ejemplo n.º 7
0
def ping():
    host = settings.SERVER.rstrip("/")
    url = URL_PING % {"host": host}

    param = {}
    send_message(url, param)
Ejemplo n.º 8
0
def get_keys():
    host = settings.SERVER.rstrip('/')
    url = URL_KEYS % {'host': host}

    return send_message(url)
Ejemplo n.º 9
0
def send_log(spec_id, logfile):
    host = settings.SERVER.rstrip('/')
    url = URL_SUBMIT_LOG % {'host': host, 'spec_id': spec_id}

    param = {'log': open(logfile)}
    send_message(url, param)
Ejemplo n.º 10
0
def get_task_info(task_id):
    host = settings.SERVER.rstrip('/')
    url = URL_TASK_INFO % {'host': host, 'task_id': task_id}

    return json.loads(send_message(url))
Ejemplo n.º 11
0
def get_spec_info(spec_id):
    host = settings.SERVER.rstrip('/')
    url = URL_SPEC_INFO % {'host': host, 'spec_id': spec_id}

    return json.loads(send_message(url))
Ejemplo n.º 12
0
def ping():
    host = settings.SERVER.rstrip('/')
    url = URL_PING % {'host': host}

    param = {}
    send_message(url, param)