示例#1
0
文件: management.py 项目: hughbg/tkp
def run_job(args):
    print "running job '%s'" % args.name
    prepare_job(args.name)
    monitor_coords = parse_monitoringlist_positions(args)
    if args.method == 'celery':
        import tkp.distribute.celery
        run(args.name, monitor_coords)
    elif args.method == 'test':
        return True
    else:
        sys.stderr.write("Execution method %s unknown" % args.method)
        sys.exit(1)
示例#2
0
def run_job(args):
    print "running job '%s'" % args.name
    prepare_job(args.name)
    monitor_coords = parse_monitoringlist_positions(args)
    run(args.name, monitor_coords)