from ecflow import Client import sys suitename = sys.argv[1] if len(sys.argv) > 1 else 'wrf_hydro_nwm' try: print("Reloading suite...") ci = Client() try: ci.delete(suitename, force=True) # clear out the server except: pass ci.load("defs/%s.def" % suitename) # load the definition into the server ci.suspend(suitename) ci.begin_suite(suitename) # start the suite print("Complete") except RuntimeError as e: print("Failed:", e)