Add podgrab featureset
This commit is contained in:
parent
095bf52a2f
commit
233dd5b5c0
33 changed files with 2315 additions and 125 deletions
|
@ -172,12 +172,12 @@ class TaskManager:
|
|||
with self.lock:
|
||||
return list(self.tasks.values())
|
||||
|
||||
def clean_old_tasks(self, max_age_seconds=60):
|
||||
def clean_old_tasks(self, max_age_seconds=86400):
|
||||
"""
|
||||
Remove old completed or failed tasks.
|
||||
|
||||
Args:
|
||||
max_age_seconds (int): Maximum age of tasks to keep in seconds
|
||||
max_age_seconds (int): Maximum age of tasks to keep in seconds (default: 24 hours)
|
||||
|
||||
Returns:
|
||||
int: Number of tasks removed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue