Update Python tools
This commit is contained in:
@@ -121,8 +121,13 @@ class RunManager:
|
||||
run = self.store.get(int(run_id_text))
|
||||
if kind == "uploads" and (run is None or run.status not in {"queued", "running"}):
|
||||
shutil.rmtree(path, ignore_errors=True)
|
||||
elif kind == "artifacts" and path.stat().st_mtime < cutoff:
|
||||
shutil.rmtree(path, ignore_errors=True)
|
||||
elif kind == "artifacts":
|
||||
try:
|
||||
expired = path.stat().st_mtime < cutoff
|
||||
except FileNotFoundError:
|
||||
continue
|
||||
if expired:
|
||||
shutil.rmtree(path, ignore_errors=True)
|
||||
|
||||
def run_background_task(self, task: BackgroundTask) -> None:
|
||||
"""Run a declared internal task without creating high-volume run history."""
|
||||
|
||||
Reference in New Issue
Block a user