celery/celery
1052 findings in 218 Python files · 50,629 lines · scanned in 33.3 s on 2026-11-12
Every number here comes from the same analyzer that runs on your upload, on the tree as it is in the repository. A finding is listed with the function or module it sits in; nothing is matched from text. Tests, examples and benchmarks are excluded from the scan, so "never referenced inside the project" means exactly that.
import_cycle 1
modules that import each other
celery.utils.collectionsCircular import between 3 modules: celery.utils.collections -> celery.utils.functional -> celery.utils.time
swallowed_error 9
an except that hides what went wrong
celery.app.base.pydantic_wrapper.<locals>.dump_argumentexception caught at line(s) 287 and dropped silently — log it or re-raise, or the failure never reaches anyonecelery.backends.base.Backend._handle_group_chord_errorexception caught at line(s) 556 and dropped silently — log it or re-raise, or the failure never reaches anyone - reachable from 1 call site (celery/backends/base.py:476)celery.backends.database.DatabaseBackend._get_task_meta_forexception caught at line(s) 265 and dropped silently — log it or re-raise, or the failure never reaches anyone - reachable from 1 call site (celery/backends/base.py:971)celery.events.cursesmon.CursesMonitor.alertexception caught at line(s) 170 and dropped silently — log it or re-raise, or the failure never reaches anyone - reachable from 4 call sites (celery/events/cursesmon.py:218, celery/events/cursesmon.py:282, celery/events/cursesmon.py:298)celery.platforms.setgroupsexception caught at line(s) 554 and dropped silently — log it or re-raise, or the failure never reaches anyone - reachable from 2 call sites (celery/platforms.py:538, celery/platforms.py:579)celery.utils.serialization.find_pickleable_exceptionexception caught at line(s) 63 and dropped silently — log it or re-raise, or the failure never reaches anyone - reachable from 1 call site (celery/utils/serialization.py:169)
and 3 more of the same check.
god_class 18
a class that owns too much
celery.app.base.Celery85 methods — likely does too muchcelery.app.task.Task40 methods — likely does too muchcelery.backends.base.Backend58 methods — likely does too muchcelery.backends.base.BaseKeyValueStoreBackend29 methods — likely does too muchcelery.backends.redis.RedisBackend35 methods — likely does too muchcelery.backends.rpc.RPCBackend28 methods — likely does too much
and 12 more of the same check.
wide_signature 161
functions that take so many arguments the call sites are unreadable
celery.debug_import6 parameters — a call site says nothing about them; group them into one object or split the functioncelery.app.amqp.Queues.__init__8 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 85 call sites (celery/app/amqp.py:102, celery/app/utils.py:78, celery/backends/arangodb.py:55)celery.app.amqp.AMQP.Queues6 parameters — a call site says nothing about them; group them into one object or split the function - reachable from 2 call sites (celery/app/amqp.py:701, celery/app/amqp.py:705)celery.app.amqp.AMQP.as_task_v230 parameters — a call site says nothing about them; group them into one object or split the functioncelery.app.amqp.AMQP.as_task_v123 parameters — a call site says nothing about them; group them into one object or split the functioncelery.app.amqp.AMQP._create_task_sender.<locals>.send_task_message18 parameters — a call site says nothing about them; group them into one object or split the function
and 155 more of the same check.
complex 33
branchy functions, counted from the AST
celery.app.amqp.AMQP._create_task_sender.<locals>.send_task_messagecyclomatic complexity 34celery.app.base.Celery.send_taskcyclomatic complexity 48celery.app.trace.build_tracer.<locals>.trace_taskcyclomatic complexity 57celery.app.utils.sanitize_urlcyclomatic complexity 36celery.backends.redis.RedisBackend.__init__cyclomatic complexity 39celery.canvas._chain.prepare_stepscyclomatic complexity 50
and 27 more of the same check.
duplicate 3
the same block in two places
celery.backends.azureblockblob.AzureBlockBlobBackend.mgetIdentical code in 2 functions (celery.backends.azureblockblob.AzureBlockBlobBackend.mget, celery.backends.cosmosdbsql.CosmosDBSQLBackend.mget) — extract it into one function and call it from eachcelery.utils.collections.ChainMap.getIdentical code in 3 functions (celery.utils.collections.ChainMap.get, celery.utils.collections.ConfigurationView.get, celery.utils.collections.DictAttribute.get) — extract it into one function and call it from eacht.smoke.workers.alt.celery_alt_dev_workerIdentical code in 3 functions (t.smoke.workers.alt.celery_alt_dev_worker, t.smoke.workers.latest.celery_latest_worker, t.smoke.workers.other.celery_other_dev_worker) — extract it into one function and call it from each
hub 10
a module everything depends on
celery.app.control.Inspect._requestcalled from 17 places — change here ripples widelycelery.app.control.Control.broadcastcalled from 19 places — change here ripples widelycelery.app.task.Task.scalled from 29 places — change here ripples widelycelery.bin.base.CLIContext.echocalled from 23 places — change here ripples widelycelery.bin.multi.TermLogger.notecalled from 17 places — change here ripples widelycelery.canvas.maybe_signaturecalled from 20 places — change here ripples widely
and 4 more of the same check.
coupling 5
modules that know too much about each other
celery.app.basedepends on 27 project modulescelery.app.taskdepends on 18 project modulescelery.app.tracedepends on 16 project modulescelery.apps.workerdepends on 18 project modulescelery.bin.celerydepends on 18 project modules
deep_conditions 1
conditionals nested past the point anyone can hold them
celery.app.base.Celery.send_task5 nested if-blocks — return early on the failing case, or extract the innermost branch into its own function - reachable from 4 call sites (celery/app/task.py:756, celery/beat.py:448, celery/beat.py:461)
wildcard_import 2
a star import that puts unknown names in scope
t.smoke.conftest`from t.smoke.workers.alt import *` at line 18 — no tool can resolve which names this module uses; import the names you needt.smoke.tasks`from t.integration.tasks import *` at line 13 — no tool can resolve which names this module uses; import the names you need
suspicious_host 5
a hard-coded host or address
celerysends data to docs.celeryq.dev - not a host this project's manifest would explain; review what it uploadscelery.backends.cassandrasends data to datastax.github.io - not a host this project's manifest would explain; review what it uploadscelery.resultsends data to docs.celeryq.dev - not a host this project's manifest would explain; review what it uploadscelery.worker.consumer.consumersends data to docs.celeryq.dev - not a host this project's manifest would explain; review what it uploadsextra.release.sphinx2rst_configsends data to docs.celeryq.dev - not a host this project's manifest would explain; review what it uploads
large_module 3
a check from the analyzer
celery.app.base1822 linescelery.backends.base1530 linescelery.canvas2910 lines
unused 106
never called, never imported, never read
celery.app.amqp.utf8dictnever referenced inside the project (dead code or public API)celery.app.annotations.MapAnnotation.annotate_anynever referenced inside the project (dead code or public API)celery.app.base.Celery.worker_mainnever referenced inside the project (dead code or public API)celery.app.base.Celery.config_from_envvarnever referenced inside the project (dead code or public API)celery.app.base.Celery.select_queuesnever referenced inside the project (dead code or public API)celery.app.base.Celery.add_periodic_tasknever referenced inside the project (dead code or public API)
and 100 more of the same check.
bad_name 102
a name that does not say what the thing holds
celery.app.builtins.add_unlock_chord_task.<locals>.unlock_chordnames say nothing (j, ret) — rename to what they holdcelery.app.builtins.add_chunk_task.<locals>.chunksnames say nothing (it, n) — rename to what they holdcelery.app.defaults.flattennames say nothing (d, ns) — rename to what they holdcelery.app.task.Task.retrynames say nothing (S, ret) — rename to what they holdcelery.app.task.Task.applynames say nothing (ret, tb) — rename to what they holdcelery.app.task.Task.snames say nothing (s) — rename to what they hold
and 96 more of the same check.
no_contract 593
a function whose docstring promises nothing
celery.debug_importno docstring and no type hints — what it takes and returns is only visible by reading the bodycelery._state.get_current_appno docstring and no type hints — what it takes and returns is only visible by reading the bodycelery.app.amqp.Queues.add_compatno docstring and no type hints — what it takes and returns is only visible by reading the bodycelery.app.amqp.Queues.new_missingno docstring and no type hints — what it takes and returns is only visible by reading the bodycelery.app.amqp.Queues.consume_fromno docstring and no type hints — what it takes and returns is only visible by reading the bodycelery.app.amqp.AMQP.Queuesno docstring and no type hints — what it takes and returns is only visible by reading the body
and 587 more of the same check.
Five projects free. A .zip or a public GitHub URL.
Other repositories, same treatment
- Textualize/rich 97 findings
- encode/django-rest-framework 337 findings
- encode/httpx 26 findings
- fastapi/fastapi 163 findings
- pallets/click 85 findings
- pallets/flask 45 findings
- psf/requests 47 findings
- pydantic/pydantic 164 findings
- scrapy/scrapy 186 findings