diff --git a/picca_bookkeeper/bookkeeper.py b/picca_bookkeeper/bookkeeper.py index 47a8e850..4d683121 100644 --- a/picca_bookkeeper/bookkeeper.py +++ b/picca_bookkeeper/bookkeeper.py @@ -3107,7 +3107,7 @@ def check_existing_output_file( if size < 40: jobid = int(file.read_text().splitlines()[0]) status = get_Tasker(system).get_jobid_status(jobid) - if status not in ("RUNNING", "PENDING", "REQUEUED", "SUSPENDED"): + if status not in ("COMPLETED", "RUNNING", "PENDING", "REQUEUED", "SUSPENDED"): return False logger.info(f"{job_name}: skipping already run:\n\t{str(file)}") return True