MCPcopy
hub / github.com/celery/celery / apply_async

Method apply_async

celery/canvas.py:1384–1392  ·  view source on GitHub ↗
(self, args=None, kwargs=None, **opts)

Source from the content-addressed store, hash-verified

1382 )
1383
1384 def apply_async(self, args=None, kwargs=None, **opts):
1385 # need to evaluate generators
1386 args = args if args else ()
1387 kwargs = kwargs if kwargs else {}
1388 task, it = self._unpack_args(self.kwargs)
1389 return self.type.apply_async(
1390 (), {'task': task, 'it': list(it)},
1391 route_name=task_name_from(self.kwargs.get('task')), **opts
1392 )
1393
1394
1395@Signature.register_type()

Callers

nothing calls this directly

Calls 4

task_name_fromFunction · 0.85
_unpack_argsMethod · 0.80
apply_asyncMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected