Esempio 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)
Esempio 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)
Esempio n. 3
0
def get_keys():
    host = settings.SERVER.rstrip("/")
    url = URL_KEYS % {"host": host}

    return send_message(url)
Esempio 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)
Esempio 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))
Esempio 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))
Esempio n. 7
0
def ping():
    host = settings.SERVER.rstrip("/")
    url = URL_PING % {"host": host}

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

    return send_message(url)
Esempio 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)
Esempio 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))
Esempio 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))
Esempio n. 12
0
def ping():
    host = settings.SERVER.rstrip('/')
    url = URL_PING % {'host': host}

    param = {}
    send_message(url, param)