Repository Analysis

celery/celery

Distributed Task Queue (development branch)

23.0 Moderate AI signal View on GitHub
23.0
Adjusted Score
23.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
28,534
Stars
Python
Language
107,412
Lines of Code
524
Files
2271
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 16HIGH 25MEDIUM 53LOW 2177

Pattern Findings

2271 matches across 18 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers1756 hits · 1555 pts
SeverityFileLineSnippet
LOWdocs/conf.py90def configcheck_project_settings():
LOWdocs/conf.py103def configcheck_should_ignore(setting):
LOWdocs/_ext/celerydocs.py127def maybe_resolve_abbreviations(app, env, node, contnode):
LOWt/smoke/signals.py12def worker_process_init_handler(sender, **kwargs):
LOWt/smoke/signals.py17def worker_process_shutdown_handler(sender, pid, exitcode, **kwargs):
LOWt/smoke/tasks.py42def soft_time_limit_lower_than_time_limit():
LOWt/smoke/tasks.py47def soft_time_limit_must_exceed_time_limit():
LOWt/smoke/tasks.py65def self_termination_system_exit():
LOWt/smoke/tasks.py71def countdown_task_with_retry(self):
LOWt/smoke/tasks.py79def non_eta_task_with_retries(self):
LOWt/smoke/tasks.py93def self_termination_delay_timeout():
LOWt/smoke/tasks.py99def self_termination_exhaust_memory():
LOWt/smoke/tests/test_signals.py42 def before_task_publish_handler(*args, **kwargs):
LOWt/smoke/tests/test_signals.py54 def after_task_publish_handler(*args, **kwargs):
LOWt/smoke/tests/test_control.py14 def test_shutdown_exit_with_zero(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_canvas.py38 def test_chain_gets_last_task_id_with_failing_tasks_in_chain(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_canvas.py56 def test_upgrade_to_chord_inside_chains(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_canvas.py144 def test_chord_error_propagation_with_different_body_types(
LOWt/smoke/tests/test_canvas.py185 def test_pending_tasks_released_on_forget(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py37 def test_restart_during_task_execution(
LOWt/smoke/tests/test_worker.py48 def test_restart_between_task_execution(
LOWt/smoke/tests/test_worker.py86 def test_multiple_warm_shutdown_does_nothing(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py115 def test_hard_shutdown_from_warm(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py131 def test_hard_shutdown_from_cold(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py162 def test_shutdown_with_long_running_tasks(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py199 def test_hard_shutdown_from_cold(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py238 def test_hard_shutdown_from_soft(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py253 def test_task_completes_during_soft_shutdown(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py282 def test_task_completes_during_soft_shutdown_with_time_limit(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py338 def test_hard_shutdown_from_soft(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py370 def test_soft_shutdown_reset_visibility_timeout(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py391 def test_soft_shutdown_reset_visibility_timeout_group_one_finish(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py416 def test_soft_shutdown_reset_visibility_timeout_group_none_finish(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py450 def test_soft_shutdown_reset_visibility_timeout(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_worker.py471 def test_soft_shutdown_reset_visibility_timeout_group_one_finish(
LOWt/smoke/tests/test_tasks.py33 def test_child_process_respawn(
LOWt/smoke/tests/test_tasks.py53 def wait_for_two_celery_processes():
LOWt/smoke/tests/test_tasks.py98 def test_terminated_task_logs_correct_error(
LOWt/smoke/tests/test_tasks.py137 def test_soft_time_limit_lower_than_time_limit(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_tasks.py143 def test_soft_time_limit_must_exceed_time_limit(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_consumer.py40 def test_reducing_prefetch_count(self, celery_setup: CeleryTestSetup, expected_running_tasks_count: int):
LOWt/smoke/tests/test_consumer.py63 def test_prefetch_count_restored(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_consumer.py86 def test_max_prefetch_passed_on_broker_restart(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_consumer.py107 def test_max_prefetch_not_passed_on_broker_restart(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_consumer.py121 def test_worker_consume_tasks_after_redis_broker_restart(
LOWt/smoke/tests/test_consumer.py149 def test_worker_does_not_hang_on_broker_connection_loss(
LOWt/smoke/tests/test_dedup_chain_dispatch.py33 def test_reject_requeue_completes_chain(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_dedup_chain_dispatch.py42 def test_dedup_dispatches_chain_on_redelivery(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_dedup_chain_dispatch.py51 def test_dedup_dispatches_callback_on_redelivery(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/test_thread_safe.py50 def test_multithread_task_publish(
LOWt/smoke/tests/test_thread_safe.py58 def after_task_publish_handler(*args, **kwargs):
LOWt/smoke/tests/stamping/test_revoke.py47 def test_revoke_by_stamped_headers_after_publish(
LOWt/smoke/tests/stamping/test_revoke.py63 def test_revoke_by_stamped_headers_before_publish(
LOWt/smoke/tests/stamping/conftest.py10def default_rabbitmq_broker_image() -> str:
LOWt/smoke/tests/stamping/test_hybrid_cluster.py12def get_hybrid_clusters_matrix() -> list[list[str]]:
LOWt/smoke/tests/stamping/test_hybrid_cluster.py83 def test_multiple_stamps_multiple_workers(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/stamping/test_hybrid_cluster.py109 def test_stamping_on_replace_with_legacy_worker_in_cluster(
LOWt/smoke/tests/quorum_queues/test_cycle_detection.py16 def test_countdown_task_with_retry(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/quorum_queues/test_cycle_detection.py22 def test_non_eta_task_with_multiple_retries(self, celery_setup: CeleryTestSetup):
LOWt/smoke/tests/quorum_queues/conftest.py34def default_rabbitmq_broker_image() -> str:
1696 more matches not shown…
Hallucination Indicators16 hits · 210 pts
SeverityFileLineSnippet
CRITICALt/unit/tasks/test_canvas.py269 x.type.app.control.election.assert_called()
CRITICALt/unit/app/test_app.py1655 self.app.amqp.queues.select.assert_called_with({'foo', 'bar'})
CRITICALt/unit/backends/test_redis.py217 consumer.backend.client.connection_pool.reset.assert_called_once()
CRITICALt/unit/backends/test_redis.py223 consumer.backend.client.connection_pool.reset.reset_mock()
CRITICALt/unit/backends/test_redis.py226 consumer.backend.client.connection_pool.reset.assert_called_once()
CRITICALt/unit/backends/test_redis.py232 consumer.backend.client.connection_pool.reset.reset_mock()
CRITICALt/unit/backends/test_redis.py1394 self.b.client.pipeline.return_value.zadd().zcount().get().get().expire(
CRITICALt/unit/backends/test_redis.py1406 self.b.client.pipeline.return_value.zadd().zcount().get().get().expire(
CRITICALt/unit/backends/test_redis.py1422 self.b.client.pipeline.return_value.rpush().llen().get().get().expire(
CRITICALt/unit/backends/test_redis.py1438 self.b.client.pipeline.return_value.zadd().zcount().get().get().expire(
CRITICALt/unit/backends/test_redis.py1362 self.b.client.pipeline.return_value.zadd().zcount().get().get().expire(
CRITICALt/unit/backends/test_redis.py1378 self.b.client.pipeline.return_value.rpush().llen().get().get().expire(
CRITICALt/unit/worker/test_strategy.py283 C.consumer.controller.state.revoked.add(task.id)
CRITICALt/unit/worker/test_worker.py733 self.app.amqp.queues.select_add.assert_called_with(
CRITICALt/integration/test_canvas.py1945 root_id, parent_id, value = res.parent.parent.parent.parent.get(
CRITICALcelery/backends/azureblockblob.py13 from azure.core.exceptions import ResourceExistsError, ResourceNotFoundError
Excessive Try-Catch Wrapping152 hits · 168 pts
SeverityFileLineSnippet
MEDIUMdocs/changelog_formatter.py22 print(f"Error: {filename} file not found.")
LOWt/smoke/tests/test_tasks.py107 except Exception as err:
LOW…smoke/tests/quorum_queues/test_chord_unlock_routing.py62 except Exception as exc:
LOWt/unit/tasks/test_tasks.py112 except Exception as exc:
LOWt/unit/tasks/test_tasks.py125 except Exception as exc:
LOWt/unit/tasks/test_tasks.py186 except Exception as exc:
LOWt/unit/app/test_schedules.py672 except Exception as exc:
LOWt/unit/app/test_log.py102 except Exception:
LOWt/unit/app/test_trace.py32 except Exception as e:
LOWt/unit/app/test_trace.py92 except Exception:
LOWt/unit/app/test_trace.py109 except Exception:
LOWt/unit/app/test_trace.py132 except Exception as exc:
LOWt/unit/bin/test_control.py153 except Exception as exc:
LOWt/unit/backends/test_database.py317 except Exception as exc:
LOWt/unit/backends/test_elasticsearch.py904 except Exception as exc:
LOWt/unit/backends/test_elasticsearch.py857 except Exception as exc:
LOWt/unit/backends/test_base.py1558 except Exception as exc:
LOWt/unit/backends/test_base.py1621 except Exception as exc:
LOWt/unit/backends/test_base.py1652 except Exception as exc:
MEDIUMt/unit/backends/test_asynchronous.py577def teardown_thread(self, thread):
LOWt/unit/backends/test_asynchronous.py582 except Exception:
LOWt/unit/utils/test_sysinfo.py10except Exception:
LOWt/unit/utils/test_collections.py142 except Exception:
MEDIUMt/unit/utils/test_collections.py138def test_exception_info(self):
MEDIUMt/unit/worker/test_request.py104def test_retry_semipredicate(self):
MEDIUMt/unit/worker/test_request.py338def test_on_failure_WorkerLostError_rejects_with_requeue(self):
MEDIUMt/unit/worker/test_request.py847def get_ei():
LOWt/unit/worker/test_request.py834 except Exception:
LOWt/unit/worker/test_request.py1404 except Exception as exc:
LOWt/unit/worker/test_request.py107 except Exception as exc:
LOWt/unit/worker/test_request.py1427 except Exception as exc:
LOWt/integration/conftest.py110 except Exception as e:
MEDIUMt/integration/test_canvas.py348def test_chain_error_handler_with_eta(self, manager):
LOWt/integration/test_canvas.py3297 except Exception as exc:
LOWt/integration/test_canvas.py3779 except Exception:
LOWt/integration/test_mem_leak_in_exception_handling.py113 except Exception:
LOWt/integration/test_mem_leak_in_exception_handling.py125 except Exception:
LOWt/integration/test_mem_leak_in_exception_handling.py136 except Exception:
LOWt/integration/test_mem_leak_in_exception_handling.py189 except Exception:
LOWt/integration/test_mem_leak_in_exception_handling.py230 except Exception:
LOWt/integration/test_tasks.py471 except Exception as exc:
LOWt/integration/test_tasks.py750 except Exception:
LOWt/integration/test_tasks.py772 except Exception:
LOWt/integration/test_tasks.py797 except Exception:
LOWcelery/bootsteps.py149 except Exception as exc: # pylint: disable=broad-except
LOWcelery/platforms.py490 except Exception: # pylint: disable=broad-except
LOWcelery/local.py326 except Exception:
MEDIUMcelery/local.py69def __name__(self):
LOWcelery/beat.py283 except Exception as exc: # pylint: disable=broad-except
LOWcelery/beat.py411 except Exception as exc: # pylint: disable=broad-except
LOWcelery/beat.py540 except Exception as exc: # pylint: disable=broad-except
MEDIUMcelery/beat.py427def _do_sync(self):
LOWcelery/app/trace.py549 except Exception as exc:
LOWcelery/app/trace.py604 except Exception as exc:
LOWcelery/app/trace.py670 except Exception as exc:
LOWcelery/app/trace.py677 except Exception as exc:
LOWcelery/app/trace.py698 except Exception as exc:
LOWcelery/app/task.py863 except Exception as exc:
LOWcelery/app/builtins.py67 except Exception as exc:
LOWcelery/app/builtins.py82 except Exception as exc: # pylint: disable=broad-except
92 more matches not shown…
Unused Imports157 hits · 157 pts
SeverityFileLineSnippet
LOWt/smoke/conftest.py1
LOWt/smoke/conftest.py14
LOWt/smoke/conftest.py15
LOWt/smoke/conftest.py16
LOWt/smoke/conftest.py17
LOWt/smoke/tasks.py3
LOWt/smoke/tasks.py13
LOWt/smoke/tests/test_tasks.py1
LOWt/smoke/tests/test_dedup_chain_dispatch.py10
LOWt/smoke/tests/test_thread_safe.py1
LOWt/smoke/tests/stamping/test_revoke.py1
LOWt/smoke/tests/stamping/conftest.py4
LOWt/smoke/tests/stamping/test_hybrid_cluster.py1
LOWt/smoke/tests/stamping/test_visitor.py1
LOWt/smoke/tests/quorum_queues/test_cycle_detection.py6
LOWt/smoke/tests/quorum_queues/conftest.py1
LOW…smoke/tests/quorum_queues/test_chord_unlock_routing.py8
LOW…/quorum_queues/test_native_delayed_delivery_binding.py8
LOWt/smoke/tests/quorum_queues/test_qos.py8
LOWt/smoke/tests/quorum_queues/test_default_queue_type.py6
LOWt/smoke/tests/failover/test_worker_failover.py1
LOWt/smoke/operations/worker_kill.py1
LOWt/smoke/operations/task_termination.py1
LOWt/smoke/operations/worker_restart.py1
LOWt/smoke/workers/other.py1
LOWt/smoke/workers/alt.py1
LOWt/unit/conftest.py23
LOWt/unit/conftest.py23
LOWt/unit/conftest.py23
LOWt/unit/bin/test_daemonization.py1
LOWt/unit/bin/proj/app2.py1
LOWt/unit/contrib/test_sphinx.py6
LOWt/unit/contrib/test_worker.py7
LOWt/unit/contrib/proj/foo.py1
LOWt/integration/conftest.py9
LOWexamples/celery_http_gateway/urls.py2
LOWexamples/celery_http_gateway/urls.py2
LOWexamples/celery_http_gateway/urls.py2
LOWexamples/stamping/myapp.py34
LOWexamples/django/proj/__init__.py3
LOWexamples/django/proj/urls.py1
LOWexamples/django/proj/urls.py1
LOWexamples/django/proj/urls.py2
LOWexamples/django/proj/urls.py2
LOWcelery/__init__.py75
LOWcelery/__init__.py75
LOWcelery/__init__.py76
LOWcelery/__init__.py77
LOWcelery/__init__.py78
LOWcelery/__init__.py79
LOWcelery/__init__.py80
LOWcelery/__init__.py80
LOWcelery/__init__.py80
LOWcelery/__init__.py80
LOWcelery/__init__.py80
LOWcelery/__init__.py80
LOWcelery/__init__.py80
LOWcelery/__init__.py80
LOWcelery/__init__.py80
LOWcelery/__init__.py82
97 more matches not shown…
Deep Nesting92 hits · 88 pts
SeverityFileLineSnippet
LOWsetup.py64
LOWt/unit/conftest.py314
LOWt/unit/conftest.py525
LOWt/unit/tasks/test_chord.py134
LOWt/unit/app/test_schedules.py668
LOWt/unit/backends/test_couchdb.py129
LOWt/unit/contrib/test_rdb.py33
LOWt/unit/fixups/test_django.py198
LOWt/unit/worker/test_native_delayed_delivery.py179
LOWt/unit/worker/test_consumer.py624
LOWt/integration/test_canvas.py83
LOWt/integration/test_tasks.py289
LOWexamples/quorum-queues/myapp.py71
LOWcelery/bootsteps.py137
LOWcelery/platforms.py106
LOWcelery/local.py320
LOWcelery/__init__.py88
LOWcelery/beat.py569
LOWcelery/beat.py633
LOWcelery/canvas.py74
LOWcelery/canvas.py960
LOWcelery/canvas.py1120
LOWcelery/canvas.py2191
LOWcelery/schedules.py434
LOWcelery/app/trace.py137
LOWcelery/app/trace.py344
LOWcelery/app/trace.py426
LOWcelery/app/trace.py475
LOWcelery/app/task.py536
LOWcelery/app/control.py512
LOWcelery/app/utils.py327
LOWcelery/app/utils.py378
LOWcelery/app/utils.py329
LOWcelery/app/defaults.py428
LOWcelery/app/base.py846
LOWcelery/bin/control.py26
LOWcelery/bin/shell.py120
LOWcelery/bin/logtool.py78
LOWcelery/backends/gcs.py247
LOWcelery/backends/filesystem.py98
LOWcelery/backends/redis.py575
LOWcelery/backends/base.py344
LOWcelery/backends/base.py441
LOWcelery/backends/base.py565
LOWcelery/backends/base.py619
LOWcelery/backends/base.py1172
LOWcelery/backends/database/session.py80
LOWcelery/utils/log.py45
LOWcelery/utils/log.py145
LOWcelery/utils/saferepr.py158
LOWcelery/utils/saferepr.py197
LOWcelery/utils/imports.py48
LOWcelery/utils/imports.py69
LOWcelery/utils/timer2.py79
LOWcelery/utils/threads.py62
LOWcelery/utils/functional.py215
LOWcelery/utils/functional.py318
LOWcelery/utils/collections.py544
LOWcelery/utils/objects.py15
LOWcelery/utils/serialization.py233
32 more matches not shown…
Decorative Section Separators14 hits · 63 pts
SeverityFileLineSnippet
MEDIUMt/unit/tasks/test_context.py88 # ------------------------------------------------------------------
MEDIUMt/unit/tasks/test_context.py90 # ------------------------------------------------------------------
MEDIUMt/unit/backends/test_asynchronous.py31# ---------------------------------------------------------------------------
MEDIUMt/unit/backends/test_asynchronous.py33# ---------------------------------------------------------------------------
MEDIUMt/unit/backends/test_asynchronous.py170# ---------------------------------------------------------------------------
MEDIUMt/unit/backends/test_asynchronous.py172# ---------------------------------------------------------------------------
MEDIUMt/unit/backends/test_asynchronous.py324# ---------------------------------------------------------------------------
MEDIUMt/unit/backends/test_asynchronous.py326# ---------------------------------------------------------------------------
MEDIUMt/unit/worker/test_consumer.py1291 # ------------------------------------------------------------------
MEDIUMt/unit/worker/test_consumer.py1293 # ------------------------------------------------------------------
MEDIUMt/unit/worker/test_consumer.py1313 # ------------------------------------------------------------------
MEDIUMt/unit/worker/test_consumer.py1315 # ------------------------------------------------------------------
MEDIUMt/unit/worker/test_consumer.py1348 # ------------------------------------------------------------------
MEDIUMt/unit/worker/test_consumer.py1350 # ------------------------------------------------------------------
Cross-File Repetition12 hits · 60 pts
SeverityFileLineSnippet
HIGHt/smoke/workers/other.py0creates a pytest-celery worker node from the worker container.
HIGHt/smoke/workers/alt.py0creates a pytest-celery worker node from the worker container.
HIGHt/smoke/workers/latest.py0creates a pytest-celery worker node from the worker container.
HIGHt/unit/app/test_app.py0test pydantic task receiving and returning an optional argument.
HIGHt/unit/app/test_app.py0test pydantic task receiving and returning an optional argument.
HIGHt/unit/app/test_app.py0test pydantic task receiving and returning an optional argument.
HIGHt/integration/test_canvas.py0this test is built to reproduce the github issue https://github.com/celery/celery/issues/5958 the issue describes a canv
HIGHt/integration/test_canvas.py0this test is built to reproduce the github issue https://github.com/celery/celery/issues/5958 the issue describes a canv
HIGHt/integration/test_canvas.py0this test is built to reproduce the github issue https://github.com/celery/celery/issues/5958 the issue describes a canv
HIGHcelery/app/builtins.py0no longer used, but here for backwards compatibility.
HIGHcelery/app/builtins.py0no longer used, but here for backwards compatibility.
HIGHcelery/app/builtins.py0no longer used, but here for backwards compatibility.
Cross-Language Confusion12 hits · 55 pts
SeverityFileLineSnippet
HIGHt/unit/tasks/test_canvas.py1108 _task_stack.push(self.add)
HIGHt/unit/app/test_log.py327 _task_stack.push(test_task)
HIGHt/unit/app/test_app.py476 _state._task_stack.push(foo)
HIGHt/unit/app/test_app.py898 _task_stack.push(a3cX1)
HIGHt/unit/backends/test_rpc.py252 _task_stack.push(task)
HIGHt/unit/utils/test_threads.py60 x.push(['foo'])
HIGHt/unit/utils/test_threads.py71 x.push(['foo'])
HIGHt/unit/utils/test_threads.py72 x.push(['bar'])
HIGHcelery/app/task.py496 _task_stack.push(self)
HIGHcelery/app/task.py1235 self.request_stack.push(Context(*args, **{**self.request.__dict__, **kwargs}))
HIGHcelery/utils/threads.py163 >>> ls.push(42)
HIGHcelery/utils/threads.py166 >>> ls.push(23)
Self-Referential Comments17 hits · 51 pts
SeverityFileLineSnippet
MEDIUMt/smoke/tests/test_canvas.py160 # Create the failing group header (same for all tests)
MEDIUMt/smoke/tests/test_canvas.py169 # Create the chord
MEDIUMt/unit/tasks/test_canvas.py1995 # Create a chord with header group and body chain
MEDIUMt/unit/tasks/test_canvas.py2016 # Create a chord with header group and body chain (no task_id set)
MEDIUMt/unit/tasks/test_tasks.py1712 # Create a mock parent task with no root_id
MEDIUMt/unit/app/test_trace.py21 # Create a nested call stack to have frames to clear
MEDIUMt/unit/bin/proj/pyramid_celery_app.py7# This module defines a mocked Celery application to replicate
MEDIUMt/unit/backends/test_base.py823 # Create a mock that properly implements the
MEDIUMt/unit/concurrency/test_prefork.py580 # Create a mock generator (already started, so not gen_not_started)
MEDIUMt/unit/worker/test_strategy.py130 # Create a proper mock for task_buckets that supports __getitem__
MEDIUMt/unit/worker/test_native_delayed_delivery.py167 # Create a dummy float iterator
MEDIUMt/unit/worker/test_native_delayed_delivery.py183 # Define a custom errback to check types
MEDIUMt/unit/worker/test_native_delayed_delivery.py427 # Create a queue
MEDIUMt/unit/worker/test_autoscale.py244 # Create a mock consumer with autoscale and disable_prefetch enabled
MEDIUMt/integration/test_canvas.py3247 # Create the failing group header (same for all tests)
MEDIUMcelery/app/trace.py483 # This function is very long because we've unrolled all the calls
MEDIUMcelery/concurrency/asynpool.py496 # This method is called whenever the process sentinel is readable.
Over-Commented Block19 hits · 19 pts
SeverityFileLineSnippet
LOWexamples/resultgraph/tasks.py1# Example::
LOWexamples/django/proj/urls.py1from django.conf.urls import handler404, handler500 # noqa
LOW.github/workflows/codeql-analysis.yml1# For most projects, this workflow file will not need changing; you simply need
LOWcelery/__init__.py1"""Distributed Task Queue."""
LOWcelery/canvas.py881 # Issue #5354 reported that the following type of canvases
LOWcelery/canvas.py901 # variable above.
LOWcelery/canvas.py1801 # end up messing up chord counts and there are all sorts of
LOWcelery/app/task.py241 max_retries = 3
LOWcelery/app/task.py261
LOWcelery/app/task.py281
LOWcelery/app/task.py301
LOWcelery/app/task.py321 #: :setting:`task_acks_on_failure_or_timeout` setting.
LOWcelery/app/task.py341 #: Configuring this setting only applies to tasks that are
LOWcelery/app/task.py361 #: Tuple of expected exceptions.
LOWcelery/backends/dynamodb.py361 #
LOWcelery/backends/base.py201 # this is most likely to be exclusive with being a direct part of a
LOWcelery/backends/base.py481 # could exploit a stored command vulnerability to execute arbitrary
LOWcelery/concurrency/asynpool.py801 self.on_inqueue_close = on_inqueue_close
LOWcelery/worker/loops.py101 # Reset the hub on error (e.g. connection loss) to clean up
Slop Phrases4 hits · 7 pts
SeverityFileLineSnippet
LOWexamples/celery_http_gateway/settings.py90 # Don't forget to use absolute paths, not relative paths.
MEDIUMcelery/app/amqp.py239 # For example, you can use ``autoexchange = lambda n: None`` to use the
LOWcelery/app/task.py357 #: Warning: Enabling this can cause message loops; make sure you know
MEDIUMcelery/bin/multi.py71 $ # but you can also modify the options for ranges of, or specific workers
AI Slop Vocabulary4 hits · 7 pts
SeverityFileLineSnippet
LOWt/unit/tasks/test_canvas.py1245 # In the following tests, getting the group ID is a pain so we just use
LOWcelery/app/utils.py261 # no settings, just use new format.
LOWcelery/utils/threads.py333 # since each thread has its own greenlet we can just use those as
LOWcelery/worker/consumer/consumer.py607 # Retry disabled, just call connect directly.
Overly Generic Function Names4 hits · 6 pts
SeverityFileLineSnippet
LOWt/unit/app/test_trace.py87 def test_function():
LOWt/unit/app/test_trace.py104 def test_function():
LOWt/unit/app/test_trace.py127 def test_function():
LOWt/unit/concurrency/test_pool.py10def do_something(i):
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippet
HIGHcelery/worker/consumer/delayed_delivery.py232Validate and split broker URLs. Args: broker_urls: Broker URLs, either as a semicolon-separated str
Dead Code2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMt/unit/utils/test_functional.py166
MEDIUMt/unit/worker/test_loops.py401
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippet
LOWt/unit/apps/test_multi.py183 self.node = Node('foo@bar.com', options={'-A': 'proj'})
LOWt/unit/apps/test_multi.py190 'foo@bar.com',
LOWt/unit/apps/test_multi.py284 'foo@bar.com',
LOWt/unit/apps/test_multi.py293 'foo@bar.com',
Redundant / Tautological Comments3 hits · 4 pts
SeverityFileLineSnippet
LOWt/integration/test_canvas.py3268 # Check if the message appears in the logs (it shouldn't)
LOWexamples/django/demoapp/tasks.py48 retry_jitter=False, # Set False to disable randomization (use exact values: 5s, 10s, 20s)
LOWcelery/schedules.py677 # Check if the last feasible date is within the deadline
Verbosity Indicators2 hits · 3 pts
SeverityFileLineSnippet
LOWcelery/bin/worker.py54 # we need to check if the worker pool was configured.
LOWcelery/worker/request.py638 # According to the comment below, we need to check if the task