A simple app that provides django integration for RQ (Redis Queue)
This report summarizes scanner evidence for rq/django-rq, a Python project with 1,953 GitHub stars. SynthScan examined 11,063 lines of code across 94 source files, recording 145 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 18.0 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 102 finding(s).
Are imports declared and package/API names verified? 24 finding(s).
Are wrappers, guards, and repeated structures necessary? 108 finding(s).
Which changes need focused human review? 145 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 145 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | README.md | 465 | def test_something_that_creates_jobs(self): | CODE |
| LOW | integration_test/_tests.py | 57 | def terminate_all_postgres_connections(profile="default"): | CODE |
| LOW | integration_test/_tests.py | 120 | def test_site_fails_and_the_reconnects(self): | CODE |
| LOW | integration_test/_tests.py | 131 | def test_worker_lost_connection(self): | CODE |
| LOW | django_rq/cron.py | 89 | def get_cron_job_history_count(cron_job: CronJob, connection: Redis) -> int: | CODE |
| LOW | django_rq/connection_utils.py | 113 | def get_unique_connection_configs(config: dict[str, dict[str, Any]] | None = None) -> list[dict[str, Any]]: | CODE |
| LOW | django_rq/utils.py | 105 | def get_displayable_connection_kwargs(obj: Union[Queue, CronScheduler]) -> dict[str, Any]: | CODE |
| LOW | tests/test_connections.py | 24 | def test_get_connection_default(self): | CODE |
| LOW | tests/test_connections.py | 43 | def test_get_connection_sentinel(self, sentinel_class_mock): | CODE |
| LOW | tests/test_connections.py | 66 | def test_sentinel_class_initialized_with_kw_args(self, sentinel_class_mock): | CODE |
| LOW | tests/test_connections.py | 94 | def test_get_unique_connection_configs(self): | CODE |
| LOW | tests/test_connections.py | 117 | def test_get_unique_connection_configs_with_different_timeout(self): | CODE |
| LOW | tests/test_connections.py | 142 | def test_get_unique_connection_configs_deterministic_order(self): | CODE |
| LOW | tests/test_connections.py | 194 | def test_get_connection_by_index(self): | CODE |
| LOW | tests/test_connections.py | 230 | def test_get_queue_django_redis(self, mocked): | CODE |
| LOW | tests/test_connections.py | 240 | def test_get_queue_django_redis_cache(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 14 | def test_default_commit_mode_is_on_db_commit(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 18 | def test_commit_mode_auto_explicit(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 22 | def test_commit_mode_request_finished(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 26 | def test_commit_mode_on_db_commit(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 30 | def test_autocommit_fallback_with_warning(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 36 | def test_commit_mode_empty_string_falls_back(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 40 | def test_commit_mode_invalid_type(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 45 | def test_commit_mode_invalid_bool(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 50 | def test_commit_mode_invalid_value(self): | CODE |
| LOW⚡ | tests/test_commit_modes.py | 57 | def test_enqueue_autocommit_on(self): | CODE |
| LOW | tests/test_commit_modes.py | 68 | def test_enqueue_autocommit_off(self): | CODE |
| LOW | tests/test_commit_modes.py | 135 | def test_job_enqueued_after_transaction_commits(self): | CODE |
| LOW | tests/test_commit_modes.py | 151 | def test_job_discarded_on_rollback(self): | CODE |
| LOW | tests/test_commit_modes.py | 170 | def test_job_enqueued_immediately_without_transaction(self): | CODE |
| LOW | tests/test_commit_modes.py | 188 | def test_nested_atomic_blocks(self): | CODE |
| LOW | tests/test_views.py | 83 | def test_job_details_with_webhooks(self): | CODE |
| LOW | tests/test_views.py | 103 | def test_job_details_with_results(self): | CODE |
| LOW | tests/test_views.py | 159 | def test_job_details_on_deleted_dependency(self): | CODE |
| LOW | tests/test_views.py | 172 | def test_job_details_with_dependents(self): | CODE |
| LOW | tests/test_views.py | 228 | def test_requeue_all_if_deleted_job(self): | CODE |
| LOW | tests/test_views.py | 279 | def test_confirm_action_filters_missing_jobs(self): | CODE |
| LOW | tests/test_views.py | 413 | def test_scheduled_jobs_registry_removal(self): | CODE |
| LOW | tests/test_views.py | 482 | def test_statistics_json_view(self): | CODE |
| LOW | tests/test_cron.py | 30 | def test_django_cron_scheduler_init(self): | CODE |
| LOW | tests/test_cron.py | 39 | def test_first_register_initializes_connection(self): | CODE |
| LOW | tests/test_cron.py | 57 | def test_register_with_webhooks(self): | CODE |
| LOW | tests/test_cron.py | 102 | def test_connection_validation(self): | CODE |
| LOW | tests/test_cron.py | 130 | def test_connection_index_property(self): | CODE |
| LOW | tests/test_cron.py | 185 | def test_rqcron_command_exceptions(self, mock_load_config, mock_start): | CODE |
| LOW | tests/test_cron.py | 201 | def test_rqcron_command_successful_run(self): | CODE |
| LOW | tests/test_cron.py | 237 | def test_cron_scheduler_detail_view(self): | CODE |
| LOW | tests/test_cron.py | 305 | def test_cron_scheduler_detail_view_with_no_jobs(self): | CODE |
| LOW | tests/test_cron.py | 321 | def test_cron_job_detail_view(self): | CODE |
| LOW | tests/test_cron.py | 381 | def test_cron_job_detail_view_pagination(self): | CODE |
| LOW | tests/test_cron.py | 427 | def test_cron_job_detail_view_with_no_jobs(self): | CODE |
| LOW | tests/test_admin_integration.py | 98 | def test_url_names_still_work(self): | CODE |
| LOW | tests/test_admin_integration.py | 126 | def test_requires_staff_authentication(self): | CODE |
| LOW | tests/test_admin_integration.py | 146 | def test_api_token_authentication(self): | CODE |
| LOW | tests/test_prometheus_metrics.py | 138 | def test_no_metrics_without_prometheus_client(self): | CODE |
| LOW⚡ | tests/tests.py | 191 | def test_get_queues_same_connection(self): | CODE |
| LOW⚡ | tests/tests.py | 197 | def test_get_queues_different_connections(self): | CODE |
| LOW⚡ | tests/tests.py | 204 | def test_get_queues_different_classes(self): | CODE |
| LOW⚡ | tests/tests.py | 211 | def test_pass_queue_via_commandline_args(self): | CODE |
| LOW⚡ | tests/tests.py | 421 | def test_get_worker_specified(self): | CODE |
| 27 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | django_rq/thread_queue.py | 47 | except AttributeError: | CODE |
| HIGH | django_rq/connection_utils.py | 33 | except ImportError: | CODE |
| HIGH | django_rq/utils.py | 236 | except Exception: | CODE |
| HIGH | django_rq/utils.py | 281 | except ValueError: | CODE |
| HIGH | django_rq/utils.py | 214 | except ImproperlyConfigured: | CODE |
| HIGH | django_rq/views.py | 319 | except NoSuchJobError: | CODE |
| HIGH | django_rq/views.py | 494 | except NoSuchJobError: | CODE |
| HIGH | django_rq/decorators.py | 63 | except KeyError: | CODE |
| HIGH | django_rq/management/commands/rqstats.py | 121 | except KeyboardInterrupt: | CODE |
| HIGH | tests/test_commit_modes.py | 164 | except Exception: | CODE |
| HIGH | tests/utils.py | 77 | except NoSuchJobError: | CODE |
| HIGH | tests/fixtures.py | 26 | except ImportError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | integration_test/manage.py | 14 | CODE | |
| LOW | django_rq/__init__.py | 3 | CODE | |
| LOW | django_rq/__init__.py | 4 | CODE | |
| LOW | django_rq/__init__.py | 5 | CODE | |
| LOW | django_rq/__init__.py | 5 | CODE | |
| LOW | django_rq/__init__.py | 5 | CODE | |
| LOW | django_rq/__init__.py | 6 | CODE | |
| LOW | django_rq/thread_queue.py | 5 | CODE | |
| LOW | django_rq/settings.py | 1 | CODE | |
| LOW | django_rq/decorators.py | 8 | CODE | |
| LOW | django_rq/management/commands/rqworker-pool.py | 2 | CODE | |
| LOW | tests/test_connections.py | 1 | CODE | |
| LOW | tests/test_connections.py | 2 | CODE | |
| LOW | tests/settings.py | 11 | CODE | |
| LOW | tests/settings.py | 16 | CODE | |
| LOW | tests/tests.py | 3 | CODE | |
| LOW | tests/tests.py | 6 | CODE | |
| LOW | tests/tests.py | 7 | CODE | |
| LOW | tests/tests.py | 15 | CODE | |
| LOW | tests/tests.py | 24 | CODE | |
| LOW | tests/tests.py | 28 | CODE | |
| LOW | tests/tests.py | 38 | CODE | |
| LOW | tests/redis_config.py | 1 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | django_rq/utils.py | 300 | CODE | |
| LOW | django_rq/views.py | 540 | CODE | |
| LOW | django_rq/views.py | 572 | CODE | |
| LOW | django_rq/views.py | 649 | CODE | |
| LOW | django_rq/contrib/prometheus.py | 16 | CODE | |
| LOW | tests/test_connections.py | 194 | CODE | |
| LOW | tests/utils.py | 36 | CODE | |
| LOW | tests/redis_config.py | 17 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | django_rq/cron.py | 169 | Register a function to be run at regular intervals. On first call, this sets the Redis connection for | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | django_rq/utils.py | 81 | except Exception: | CODE |
| LOW | django_rq/utils.py | 236 | except Exception: | CODE |
| LOW | django_rq/utils.py | 293 | except Exception: | CODE |
| LOW | django_rq/templatetags/django_rq.py | 54 | except Exception as e: | CODE |
| LOW | tests/test_commit_modes.py | 164 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_cron.py | 239 | # Create a real scheduler and register it | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | integration_test/_tests.py | 18 | logger = logging.getLogger(__name__) | CODE |
| LOW | django_rq/__init__.py | 8 | __all__ = [ | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | django_rq/queues.py | 116 | CODE | |
| LOW | django_rq/cron.py | 153 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_views.py | 561 | # } | COMMENT |
| LOW | tests/test_views.py | 581 | # func=access_self, | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_views.py | 532 | # Check if the jobs are started | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_admin_integration.py | 38 | username='admin', email='admin@example.com', password='admin123' | CODE |