Commit c8bed3df authored by Eric Duminil's avatar Eric Duminil
Browse files

TODO?

parent 031929a4
...@@ -42,6 +42,7 @@ def clean_old_workflows(folder: Path, pattern: str = "20*.flow", hours: int = 1) ...@@ -42,6 +42,7 @@ def clean_old_workflows(folder: Path, pattern: str = "20*.flow", hours: int = 1)
Only deletes paths whose names match the random_id timestamp pattern. Only deletes paths whose names match the random_id timestamp pattern.
""" """
# TODO: Should it be called before simulation too?
cutoff = (datetime.datetime.now() - datetime.timedelta(hours=hours)).strftime("%Y%m%d_%H%M_") cutoff = (datetime.datetime.now() - datetime.timedelta(hours=hours)).strftime("%Y%m%d_%H%M_")
for path in sorted(folder.glob(pattern)): for path in sorted(folder.glob(pattern)):
if m := WORKFLOW_FOLDER_PATTERN.match(path.name): if m := WORKFLOW_FOLDER_PATTERN.match(path.name):
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment