Add items/keys/values to TasksProxy for cleanup_old_tasks

This commit is contained in:
Floppyrj45
2026-02-19 16:07:07 +01:00
parent 02a691a350
commit 17342803f8
2 changed files with 6 additions and 0 deletions

Binary file not shown.

View File

@@ -61,6 +61,12 @@ class TasksProxy:
return _TaskDict(key)
def __contains__(self, key):
return key in _load_tasks()
def items(self):
return _load_tasks().items()
def keys(self):
return _load_tasks().keys()
def values(self):
return _load_tasks().values()
def pop(self, key, *args):
with _task_lock:
tasks = _load_tasks()