🐛(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:
committed by
aleb_the_flash
parent
4eb7f29f8e
commit
f67335f306
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user