From eefafc5775354a35b23b3457087c4c9e2e31792a Mon Sep 17 00:00:00 2001 From: Christian Krakau-Louis Date: Fri, 28 Mar 2025 14:06:17 +0100 Subject: [PATCH] Update app/utils.py Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- app/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/utils.py b/app/utils.py index cfd6284f..d8aa7b6c 100644 --- a/app/utils.py +++ b/app/utils.py @@ -16,7 +16,10 @@ def hash_file(filepath, chunk_size=65536): break sha256.update(data) return sha256.hexdigest() + return sha256.hexdigest() + +def log_task_progress(task_id, step_name, status, message=None, file_id=None): def log_task_progress(task_id, step_name, status, message=None, file_id=None): """ Logs the progress of a Celery task to the database.