Add items/keys/values to TasksProxy for cleanup_old_tasks
This commit is contained in:
Binary file not shown.
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user