added functions to update job status files in a threadsafe manner
This commit is contained in:
@ -36,10 +36,11 @@ def teardown():
|
||||
rmtree(DEFAULT_JOB_OUTPUT_DIR)
|
||||
rmtree(DEFAULT_JOB_QUEUE_DIR)
|
||||
rmtree("first")
|
||||
if os.path.exists("temp_phantom_info.h5"):
|
||||
os.remove("temp_phantom_info.h5")
|
||||
if os.path.exists("temp_phantom.h5"):
|
||||
os.remove("temp_phantom.h5")
|
||||
for f in [
|
||||
"temp_phantom_info.h5", "temp_phantom.h5", "doesNotExist.lock"
|
||||
]:
|
||||
if os.path.exists(f):
|
||||
os.remove(f)
|
||||
|
||||
def backup_before_teardown(backup_source:str, backup_dest:str):
|
||||
make_dir(backup_dest, ensure_clean=True)
|
||||
|
Reference in New Issue
Block a user