MCPcopy
hub / github.com/celery/celery / call

Function call

celery/bin/call.py:58–71  ·  view source on GitHub ↗

Call a task by name.

(ctx, name, args, kwargs, eta, countdown, expires, serializer, queue, exchange, routing_key)

Source from the content-addressed store, hash-verified

56@click.pass_context
57@handle_preload_options
58def call(ctx, name, args, kwargs, eta, countdown, expires, serializer, queue, exchange, routing_key):
59 """Call a task by name."""
60 task_id = ctx.obj.app.send_task(
61 name,
62 args=args, kwargs=kwargs,
63 countdown=countdown,
64 serializer=serializer,
65 queue=queue,
66 exchange=exchange,
67 routing_key=routing_key,
68 eta=eta,
69 expires=expires
70 ).id
71 ctx.obj.echo(task_id)

Callers 15

test_on_tickMethod · 0.85
test_close_open_fdsFunction · 0.85
test_with_uidMethod · 0.85
test_with_guidMethod · 0.85
test_startMethod · 0.85
test_send_allMethod · 0.85
test_startMethod · 0.85
test_mgetMethod · 0.85
test_getMethod · 0.85
test_mgetMethod · 0.85

Calls 2

echoMethod · 0.80
send_taskMethod · 0.45

Tested by 15

test_on_tickMethod · 0.68
test_close_open_fdsFunction · 0.68
test_with_uidMethod · 0.68
test_with_guidMethod · 0.68
test_startMethod · 0.68
test_send_allMethod · 0.68
test_startMethod · 0.68
test_mgetMethod · 0.68
test_getMethod · 0.68
test_mgetMethod · 0.68