This document describes the current stable version of Celery (4.3). For development docs, go here.

celery.bin.call

The celery call program used to send tasks from the command-line.

class celery.bin.call.call(app=None, get_app=None, no_color=False, stdout=None, stderr=None, quiet=False, on_error=None, on_usage_error=None)[source]

Call a task by name.

Examples

$ celery call tasks.add --args='[2, 2]'
$ celery call tasks.add --args='[2, 2]' --countdown=10
add_arguments(parser)[source]
args = '<task_name>'
args_name = 'posargs'
run(name, *_, **kwargs)[source]