ssh = args['ssh'] exe = args['exe'] stdin = ssh.stdin stdout = ssh.stdout stderr = ssh.stderr j.run() # ------------------------------------------------------------------------------ # def benchmark_post (tid, args={}) : pass # ------------------------------------------------------------------------------ # try: sb.benchmark_init ('job_run', benchmark_pre, benchmark_core, benchmark_post) except saga.SagaException, ex: print "An exception occured: (%s) %s " % (ex.type, (str(ex))) print " \n*** Backtrace:\n %s" % ex.traceback # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
def benchmark_pre (tid, test_cfg, bench_cfg, session) : pass # ------------------------------------------------------------------------------ # def benchmark_core (tid, i, args={}) : pass # ------------------------------------------------------------------------------ # def benchmark_post (tid, args={}) : pass # ------------------------------------------------------------------------------ # try: sb.benchmark_init ('benchmark_selftest', benchmark_pre, benchmark_core, benchmark_post) except Exception as e : print "Exception: %s" % e # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
ssh = args['ssh'] exe = args['exe'] stdin = ssh.stdin stdout = ssh.stdout stderr = ssh.stderr j.run() # ------------------------------------------------------------------------------ # def benchmark_post (tid, args={}) : pass # ------------------------------------------------------------------------------ # try: sb.benchmark_init ('job_run', benchmark_pre, benchmark_core, benchmark_post) except saga.SagaException, ex: print "An exception occured: (%s) %s " % (ex.type, (str(ex))) print " \n*** Backtrace:\n %s" % ex.traceback
# # services = [] # jobs = [] # # for n in range (0, 100) : # services.append (saga.job.Service ('ssh://gw68.quarry.iu.teragrid.org')) # print n # # print services # # for js in services : # j = js.run_job ('/bin/sleep 100') # print j # jobs.append (j) # # print jobs # # import sys # sys.exit (0) try: sb.benchmark_init ('job_Servicec_create', benchmark_pre, benchmark_core, benchmark_post) except saga.SagaException, ex: print "An exception occured: (%s) %s " % (ex.type, ex) print " \n*** Backtrace:\n %s" % ex.traceback # vim: tabstop=8 expandtab shiftwidth=4 softtabstop=4
# ------------------------------------------------------------------------------ # # services = [] # jobs = [] # # for n in range (0, 100) : # services.append (saga.job.Service ('ssh://gw68.quarry.iu.teragrid.org')) # print n # # print services # # for js in services : # j = js.run_job ('/bin/sleep 100') # print j # jobs.append (j) # # print jobs # # import sys # sys.exit (0) try: sb.benchmark_init('job_Servicec_create', benchmark_pre, benchmark_core, benchmark_post) except saga.SagaException, ex: print "An exception occured: (%s) %s " % (ex.type, ex) print " \n*** Backtrace:\n %s" % ex.traceback
# ------------------------------------------------------------------------------ # def benchmark_pre(tid, test_cfg, bench_cfg, session): pass # ------------------------------------------------------------------------------ # def benchmark_core(tid, i, args={}): pass # ------------------------------------------------------------------------------ # def benchmark_post(tid, args={}): pass # ------------------------------------------------------------------------------ # try: sb.benchmark_init('benchmark_selftest', benchmark_pre, benchmark_core, benchmark_post) except Exception as e: print "Exception: %s" % e