Update app/utils.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Christian Krakau-Louis
2025-03-28 14:06:17 +01:00
committed by GitHub
parent 43500ce66f
commit eefafc5775
+3
View File
@@ -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.