Only remove files with job_name.

This commit is contained in:
Andrew 2023-06-08 11:50:39 -05:00 committed by GitHub
parent ca845d80e8
commit b0462f9378
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,8 +65,8 @@ def get_log_files_to_remove(db: PersistentState, job_name: str, n: int):
if row["name"].endswith(f"[{job_name}]"):
counter += 1
if counter > n:
to_remove.append(row)
if counter > n:
to_remove.append(row)
return to_remove