We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1425627 commit 4282382Copy full SHA for 4282382
pydra/engine/job.py
@@ -434,9 +434,12 @@ def run_start_time(self) -> datetime | None:
434
"""Check whether the job is currently running."""
435
if self._run_start_time is not None:
436
return self._run_start_time
437
- if not self.lockfile.exists():
+ try:
438
+ stat = self.lockfile.stat()
439
+ except FileNotFoundError:
440
+ # the lockfile was deleted
441
return None
- self._run_start_time = datetime.fromtimestamp(self.lockfile.stat().st_ctime)
442
+ self._run_start_time = datetime.fromtimestamp(stat.st_ctime)
443
444
445
def _combined_output(self, return_inputs=False):
0 commit comments