MCPcopy Create free account
hub / github.com/celery/celery / validate_argument

Function validate_argument

celery/app/base.py:217–222  ·  view source on GitHub ↗
(arg_model, arg_value)

Source from the content-addressed store, hash-verified

215 return None
216
217 def validate_argument(arg_model, arg_value):
218 return arg_model.model_validate(
219 arg_value,
220 strict=strict,
221 context={**context, 'celery_app': app, 'celery_task_name': task_name},
222 )
223
224 @functools.wraps(task_fun)
225 def wrapper(*task_args, **task_kwargs):

Callers 2

wrapperFunction · 0.85
dump_argumentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected