Ejemplo n.º 1
0
def printQueueInfo():
    if lsf.lsb_init("test") > 0:
        return -1;

    strArr = lsf.new_stringArray(2); //array length is 2
    lsf.stringArray_setitem(strArr, 0, "normal");
    lsf.stringArray_setitem(strArr, 1, "short");

    for info in lsf.get_queue_info_by_name(strArr, 2):
        print info.queue;
        print info.description;
        print ''

    return 0;
def printQueueInfo():
    if lsf.lsb_init("test") > 0:
        return -1;

    strArr = lsf.new_stringArray(1); #array length is 2
    lsf.stringArray_setitem(strArr, 0, "normal");
#    lsf.stringArray_setitem(strArr, 1, "short");

    for info in lsf.get_queue_info_by_name(strArr, 1):
        print(info.queue)
        print(info.description)
        print('')

    return 0;
def printQueueInfo():
    if lsf.lsb_init("test") > 0:
        return -1

    strArr = lsf.new_stringArray(2)
    lsf.stringArray_setitem(strArr, 0, "normal")
    lsf.stringArray_setitem(strArr, 1, "short")

    for info in lsf.get_queue_info_by_name(strArr, 2):
        print info.queue
        print info.description
        print ''

    return 0
Ejemplo n.º 4
0
def printQueueInfo():
    if lsf.lsb_init("test") > 0:
        return -1

    strArr = lsf.new_stringArray(1)
    #array length is 2
    lsf.stringArray_setitem(strArr, 0, "normal")
    #    lsf.stringArray_setitem(strArr, 1, "short");

    for info in lsf.get_queue_info_by_name(strArr, 1):
        print(info.queue)
        print(info.description)
        print('')

    return 0
Ejemplo n.º 5
0
def queue_info(queue_name=None):
    """
    :param queue_name:
    :return:
    python api style
    """
    if lsf.lsb_init("test") != 0:
        exit(1)

    queue = lsf.new_stringArray(1)
    lsf.stringArray_setitem(queue, 0, queue_name)

    for info in lsf.get_queue_info_by_name(queue, 0):
        print info.queue
        print info.description
        print ''