🐛(summary) fix Celery task execution by number of required args

Forgot to update the args verification while enriching the task
with more recording metadata.
This commit is contained in:
lebaudantoine
2025-07-18 11:20:34 +02:00
committed by aleb_the_flash
parent 4eb7f29f8e
commit f67335f306

View File

@@ -107,12 +107,13 @@ class MetadataManager:
"retries": 0,
}
_required_args_count = 4
_required_args_count = 7
if len(task_args) != _required_args_count:
logger.error("Invalid number of arguments.")
return
filename, email, _, received_at = task_args
filename, email, _, received_at, *_ = task_args
initial_metadata = {
**initial_metadata,
"filename": filename,