feat: logging toegevoegd

This commit is contained in:
kodi
2026-03-12 07:32:44 +01:00
parent ea6eac9536
commit 9901c77919
30 changed files with 1069 additions and 124 deletions
+2 -2
View File
@@ -32,11 +32,11 @@ class TaskRepository:
self._db_path = db_path
self._ensure_schema()
def create_task(self, operation: str, source: str, destination: str) -> dict:
def create_task(self, operation: str, source: str, destination: str, task_id: str | None = None) -> dict:
if operation not in VALID_OPERATIONS:
raise ValueError("invalid operation")
task_id = str(uuid.uuid4())
task_id = task_id or str(uuid.uuid4())
created_at = self._now_iso()
with self._connection() as conn: