CELERY-WORKER(1)
π celery-worker(1) π
okay bestie, welcome to the celery worker manual page β yes, that's the real name, this is section 1 of the celery worker Manual, and we are gonna get you fully fluent in spinning up a worker. grab a strawberry π, we're going in.
β¨ NAME β¨
celery-worker β Start worker instance.
like. that's the whole job. start a worker. iconic honestly.
β¨ SYNOPSIS β¨
celery worker [OPTIONS]
β¨ DESCRIPTION β¨
Start worker instance. periodt.
π Examples
the vibes, demonstrated:
$ celery --app=proj worker -l INFO
$ celery -A proj worker -l INFO -Q hipri,lopri
$ celery -A proj worker --concurrency=4
$ celery -A proj worker --concurrency=1000 -P eventlet
$ celery worker --autoscale=10,0
β¨ OPTIONS β¨
-n,--hostnameHOSTNAME β set a custom hostname, like'w1@%%h'. it expands:%%h(hostname),%%n(name) and%%d, (domain). no cap, your worker gets a little name tag π-D,--detachβ start the worker as a background process. it just. leaves. goes off to do its thing.-S,--statedbPATH β path to the state database. the extension'.db'may be appended to the filename. lowkey a small detail but we keep it.-l,--loglevel[DEBUG|INFO|WARNING|ERROR|CRITICAL|FATAL]β logging level. pick your volume, bestie π-O,--optimization[default|fair]β apply an optimization profile.--prefetch-multiplier<prefetch multiplier> β set a custom prefetch multiplier value for this worker instance.--disable-prefetchβ disable broker prefetching. the worker will only fetch a task when a process slot is available. β οΈ only supported with Redis brokers.-c,--concurrency<concurrency> β number of child processes processing the queue. the default is the number of CPUs available on your system. she scales with your machine fr fr.-P,--pool[prefork|eventlet|gevent|solo|processes|threads|custom]β pool implementation. choose your fighter β¨-E,--task-events,--eventsβ send task-related events that can be captured by monitors likecelery events,celerymon, and others. not me sending events so the monitors stay fed π--time-limitFLOAT β enables a hard time limit (in seconds int/float) for tasks. the ULTIMATE deadline.--soft-time-limitFLOAT β enables a soft time limit (in seconds int/float) for tasks. gentler. still a limit though.--max-tasks-per-childINTEGER β maximum number of tasks a pool worker can execute before it's terminated and replaced by a new worker. out with the old π--max-memory-per-childINTEGER β maximum amount of resident memory, in KiB, that may be consumed by a child process before it will be replaced by a new one. if a single task causes a child process to exceed this limit, the task will be completed and the child process will be replaced afterwards. default: no limit. soβ¦ unlimited, if you don't say anything.--purge,--discardβ (the page just lists the flag, no extra deets, but it's here and it counts π«Ά)-Q,--queuesCOMMA SEPARATED LIST β (listed bare, no further description on the page)-X,--exclude-queuesCOMMA SEPARATED LIST β (listed bare, no further description on the page)-I,--includeCOMMA SEPARATED LIST β (listed bare, no further description on the page)--without-gossipβ (listed bare, no further description on the page)--without-mingleβ (listed bare, no further description on the page)--without-heartbeatβ (listed bare, no further description on the page)--heartbeat-intervalINTEGER β (listed bare, no further description on the page)--autoscale<MIN WORKERS>, <MAX WORKERS> β (listed bare, no further description on the page)-B,--beatβ (listed bare, no further description on the page)-s,--schedule-filename,--scheduleTEXT β (listed bare, no further description on the page)--schedulerTEXT β (listed bare, no further description on the page)-f,--logfileTEXT β log destination; defaults tostderr.--pidfileTEXT β PID file path; defaults to no PID file.--uidTEXT β drops privileges to this user ID.--gidTEXT β drops privileges to this group ID.--umaskTEXT β create files and directories with this umask.--executableTEXT β override path to the Python executable.
okay that's literally everything, nothing skipped, every flag accounted for, we ate and left no crumbs π
heads up bestie: a bunch of these options are listed on the page with no description at all β so I'm not gonna make stuff up about what they do. flags are exact, facts are exact, that's the whole deal π
5.6.3 β dated 2026-05-14 β from the celery worker Manual. bye bestie, go start a worker π¦β¨
π¦ where this page comes from
- ubuntu stonking: celery 5.6.3-2 Β· BSD-3-clause-ask-solem
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms