Skip to content

Commit 7efcdd5

Browse files
committed
The same may apply to cleaning up aux files.
1 parent b061fce commit 7efcdd5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/psij/executors/batch/batch_scheduler_executor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,10 @@ def _delete_aux_file(self, job: Optional[Job] = None, suffix: Optional[str] = No
612612
assert suffix
613613
path = self.work_directory / (job.native_id + suffix)
614614
if force or path.exists():
615-
path.unlink()
615+
try:
616+
path.unlink()
617+
except FileNotFonudError:
618+
pass # see above; attached job may race with original job
616619

617620
def list(self) -> List[str]:
618621
"""Returns a list of jobs known to the underlying implementation.

0 commit comments

Comments
 (0)