Skip to content
Snippets Groups Projects
Commit cec83c47 authored by Tim O'Donnell's avatar Tim O'Donnell
Browse files

fix

parent 15ad5624
No related branches found
No related tags found
No related merge requests found
......@@ -252,6 +252,7 @@ def cluster_results(
})
def result_generator():
additional_complete_file_path = None
start = time.time()
while result_items:
print("[%0.1f sec elapsed] waiting on %d / %d items." % (
......@@ -303,7 +304,8 @@ def cluster_results(
result_item['work_dir'], "attempt.%d" % retry_num)
if os.path.exists(complete_dir):
shutil.move(complete_dir, attempt_dir) # directory
if os.path.exists(additional_complete_file_path):
if additional_complete_file and os.path.exists(
additional_complete_file_path):
shutil.move(additional_complete_file_path, attempt_dir)
if os.path.exists(error_path):
shutil.move(error_path, attempt_dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment