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)
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)