示例#1
0
def main():
    print "Running Job Queue ..."
    from pyasm.security import Batch
    Batch()

    JobTask.start(
            check_interval=0.1,
            max_jobs_completed=50
    )
    count = 0
    while 1:
        time.sleep(1)
示例#2
0
def main(site=None):
    #print "Starting Job Queue ..."
    from pyasm.security import Batch
    Batch(site=site)

    JobTask.start(check_interval=0.1, max_jobs_completed=50)
    while 1:
        try:
            time.sleep(1)
        except (KeyboardInterrupt, SystemExit), e:
            print "Exiting ..."
            raise
示例#3
0
def main():
    #print "Starting Job Queue ..."
    from pyasm.security import Batch
    Batch()

    JobTask.start(
            check_interval=0.1,
            max_jobs_completed=50
    )
    while 1:
        try:
            time.sleep(1)
        except (KeyboardInterrupt, SystemExit), e:
            print "Exiting ..."
            raise
示例#4
0
def main(options, site=None):
    #print "Starting Job Queue ..."
    from pyasm.security import Batch
    Batch(site=site)

    idx = 0
    if 'index' in options:
        idx = options['index']
        options.pop('index')
    write_pid(idx)


    JobTask.start(
            check_interval=0.1,
            max_jobs_completed=50
    )

    while 1:
        try:
            time.sleep(1)
        except (KeyboardInterrupt, SystemExit), e:
            #print "Exiting ..."
            raise