Python并行數據處理框架Celery的命令一覽表
Celery是一個基于Python的并行數據處理框架,采用消息總線作為分布式任務調度機制。這里列出其命令行參數。Celery也支持基于WebUI的管理。
輸入下面的命令獲得幫助:
celery --help
將列出如下的信息(中文為我的注釋):
Usage: celery <command> [options]
用法:celery 命令 選項
Show help screen and exit.
顯示幫助信息并退出。
Options(選項):
-A APP, --app=APP app instance to use (e.g. module.attr_name)-本次操作使用的App實例。
-b BROKER, --broker=BROKER -消息代理(服務器),用于傳遞數據的URL。
url to broker. default is 'amqp://guest@localhost//'
--loader=LOADER name of custom loader class to use. - 自定義載入類的名稱。
--config=CONFIG Name of the configuration module-配置模塊的名稱。
--workdir=WORKING_DIRECTORY- 工作目錄。
Optional directory to change to after detaching.
-C, --no-color -非彩色顯示。
-q, --quiet -靜默執行。
--version show program's version number and exit-顯示版本號。
-h, --help show this help message and exit -顯示本幫助。
---- -- - - ---- Commands-命令列表 -------------- --- ------------
+ Main-主要命令:
| celery worker
| celery events
| celery beat
| celery shell
| celery multi
| celery amqp
+ Remote Control-遠程控制:
| celery status
| celery inspect --help
| celery inspect active
| celery inspect active_queues
| celery inspect clock
| celery inspect conf None
| celery inspect memdump
| celery inspect memsample
| celery inspect objgraph None
| celery inspect ping
| celery inspect registered
| celery inspect report
| celery inspect reserved
| celery inspect revoked
| celery inspect scheduled
| celery inspect stats
| celery control --help
| celery control add_consumer <queue> [exchange [type [routing_key]]]
| celery control autoscale [max] [min]
| celery control cancel_consumer <queue>
| celery control disable_events
| celery control enable_events
| celery control pool_grow [N=1]
| celery control pool_shrink [N=1]
| celery control rate_limit <task_name> <rate_limit> (e.g. 5/s | 5/m | 5/h)>
| celery control time_limit <task_name> <soft_secs> [hard_secs]
+ Utils-使用命令:
| celery purge
| celery list
| celery migrate
| celery call
| celery result
| celery report
+ Extensions:
| celery flower
---- -- - - --------- -- - -------------- --- ------------
Type 'celery <command> --help' for help using a specific command.
鍵入'celery <command> --help'可以獲得指定的命令的更詳細的幫助信息。