This document describes Celery 3.0. For development docs, go here.
These options are supported by all commands, and usually parsed before command-specific arguments.
app instance to use (e.g. module.attr_name)
url to broker. default is ‘amqp://guest@localhost//’
name of custom loader class to use.
Name of the configuration module
These options are supported by commands that can detach into the background (daemon). They will be present in any command that also has a –detach option.
Path to log file. If no logfile is specified, stderr is used.
Optional file used to store the process pid.
The program will not start if this file already exists and the pid is still alive.
User id, or user name of the user to run as after detaching.
Group id, or group name of the main group to change to after detaching.
Effective umask of the process after detaching. Default is 0.
Optional directory to change to after detaching.
Base class for command line applications.
alias of OptionParser
Arg list used in help.
Text to print in –help before option list.
Enable if the application should support config from the cmdline.
Text to print at end of –help
Execute application from command line.
|Parameters:||argv – The list of command line arguments. Defaults to sys.argv.|
Get supported command line options.
Parses command line arguments from argv and dispatches to run().
Exits with an error message if supports_args is disabled and argv contains positional arguments.
Set to true if this command doesn’t have subcommands
Default configuration namespace.
List of options (without preload options).
Parse the available options.
List of options to parse before parsing other options.
If false the parser will raise an exception if positional args are provided.
Returns the command line usage string for this app.
Returns tuple of (short_opts, long_opts) if the command supports a pool argument, and used to monkey patch eventlet/gevent environments as early as possible.