a little task queue for python
This report presents the forensic synthetic code analysis of coleifer/huey, a Python project with 6,019 GitHub stars. SynthScan v2.0 examined 14,905 lines of code across 96 source files, recording 207 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 20.3 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 207 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH⚡ | huey/storage.py | 823 | 'queue text not null, key text not null, value blob not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 826 | 'id integer not null primary key, queue text not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 827 | 'data blob not null, timestamp real not null)') | CODE |
| HIGH⚡ | huey/storage.py | 831 | 'id integer not null primary key, queue text not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 832 | 'data blob not null, priority real not null default 0.0)') | CODE |
| HIGH⚡ | huey/storage.py | 836 | 'queue text not null, key text not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 1099 | 'queue text not null, key text not null, value bytea not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 1103 | 'id bigserial primary key, queue text not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 1104 | 'data bytea not null, timestamp double precision not null)', | CODE |
| HIGH⚡ | huey/storage.py | 1110 | 'id bigserial primary key, queue text not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 1111 | 'data bytea not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 1118 | 'queue text not null, key text not null, ' | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | huey/consumer.py | 590 | def _handle_interrupt_signal_gevent(self, sig_num, frame): | CODE |
| LOW | huey/consumer.py | 609 | def _set_child_signal_handlers(self): | CODE |
| LOW | huey/consumer.py | 620 | def _handle_stop_signal_worker(self, sig_num, frame): | CODE |
| LOW | huey/tests/test_registry.py | 62 | def test_user_task_kwarg_preserved(self): | CODE |
| LOW | huey/tests/test_registry.py | 75 | def test_context_task_reserialization(self): | CODE |
| LOW | huey/tests/test_utils.py | 107 | def test_construct_preserves_lock_file(self): | CODE |
| LOW | huey/tests/test_stats.py | 52 | def test_init_closes_own_connection(self): | CODE |
| LOW | huey/tests/test_stats.py | 56 | def test_init_preserves_open_connection(self): | CODE |
| LOW | huey/tests/test_stats.py | 101 | def test_attempt_enders_clear_inflight(self): | CODE |
| LOW | huey/tests/test_stats.py | 117 | def test_error_then_retry_duration_attributed_once(self): | CODE |
| LOW | huey/tests/test_stats.py | 151 | def test_writer_restarted_in_child(self): | CODE |
| LOW | huey/tests/test_stats.py | 176 | def test_buffered_rows_written_by_parent_alone(self): | CODE |
| LOW | huey/tests/test_stats.py | 192 | def test_shutdown_hook_flushes_in_child(self): | CODE |
| LOW | huey/tests/test_stats.py | 204 | def test_closed_recorder_not_revived(self): | CODE |
| LOW | huey/tests/test_signals.py | 42 | def test_signal_complete_result_ready(self): | CODE |
| LOW⚡ | huey/tests/test_django_tasks.py | 168 | def test_unserializable_return(self): | CODE |
| LOW⚡ | huey/tests/test_django_tasks.py | 176 | def test_unsupported_priority(self): | CODE |
| LOW⚡ | huey/tests/test_django_tasks.py | 183 | def test_moved_function_marks_failed(self): | CODE |
| LOW | huey/tests/test_django_tasks.py | 222 | def test_consumer_integration(self): | CODE |
| LOW | huey/tests/test_serializer.py | 40 | def test_mismatched_compression(self): | CODE |
| LOW | huey/tests/test_sql_huey.py | 110 | def test_consumer_integration(self): | CODE |
| LOW | huey/tests/test_crontab.py | 86 | def test_crontab_all_together(self): | CODE |
| LOW | huey/tests/test_storage.py | 117 | def test_result_store_methods(self): | CODE |
| LOW | huey/tests/test_storage.py | 205 | def test_consumer_integration(self): | CODE |
| LOW | huey/tests/test_storage.py | 237 | def test_put_if_empty_concurrent(self): | CODE |
| LOW | huey/tests/test_storage.py | 262 | def test_conflicting_init_args(self): | CODE |
| LOW | huey/tests/test_storage.py | 373 | def test_dequeue_error_handling(self): | CODE |
| LOW | huey/tests/test_storage.py | 391 | def test_wait_result_timeout_clamp(self): | CODE |
| LOW | huey/tests/test_storage.py | 417 | def test_enqueued_items_limit(self): | CODE |
| LOW | huey/tests/test_storage.py | 481 | def test_sqlite_params_normalized(self): | CODE |
| LOW | huey/tests/test_storage.py | 534 | def test_filesystem_result_store(self): | CODE |
| LOW | huey/tests/test_storage.py | 612 | def test_fs_threaded_file_lock(self): | CODE |
| LOW | huey/tests/test_storage.py | 635 | def test_consumer_integration(self): | CODE |
| LOW | huey/tests/test_api.py | 245 | def test_revoke_task_instance(self): | CODE |
| LOW | huey/tests/test_api.py | 295 | def test_revoke_task_instance_persistent(self): | CODE |
| LOW | huey/tests/test_api.py | 497 | def test_blocking_result_no_sentinel_leak(self): | CODE |
| LOW | huey/tests/test_api.py | 733 | def test_timeout_coop_helpers(self): | CODE |
| LOW | huey/tests/test_api.py | 759 | def test_timeout_cooperative_full(self): | CODE |
| LOW | huey/tests/test_api.py | 867 | def test_retries_with_override(self): | CODE |
| LOW | huey/tests/test_api.py | 970 | def test_retry_delay_periodic(self): | CODE |
| LOW | huey/tests/test_api.py | 1124 | def test_cancel_execution_task_retries(self): | CODE |
| LOW | huey/tests/test_api.py | 1328 | def test_dynamic_periodic_tasks(self): | CODE |
| LOW | huey/tests/test_api.py | 1583 | def test_group_error_chaining(self): | CODE |
| LOW | huey/tests/test_api.py | 1646 | def test_chord_result_handles(self): | CODE |
| LOW | huey/tests/test_api.py | 1757 | def test_chord_revoked_member(self): | CODE |
| LOW | huey/tests/test_api.py | 1783 | def test_chord_expired_member(self): | CODE |
| LOW | huey/tests/test_api.py | 1807 | def test_chord_member_retry_then_success(self): | CODE |
| LOW | huey/tests/test_api.py | 1893 | def test_chord_member_error_callback_independent(self): | CODE |
| LOW | huey/tests/test_api.py | 1932 | def test_chord_pipeline_member_tail_fails(self): | CODE |
| LOW | huey/tests/test_api.py | 1962 | def test_chord_pipeline_member_head_fails(self): | CODE |
| LOW | huey/tests/test_api.py | 1991 | def test_chord_pipeline_member_head_revoked(self): | CODE |
| LOW | huey/tests/test_api.py | 2144 | def test_nested_chord_callback_pipeline_tail_walking(self): | CODE |
| LOW | huey/tests/test_api.py | 2275 | def test_mixed_tasks_instances(self): | CODE |
| LOW | huey/tests/test_api.py | 2291 | def test_task_instances_args_kwargs(self): | CODE |
| LOW | huey/tests/test_api.py | 2334 | def test_error_callback_retries(self): | CODE |
| LOW | huey/tests/test_api.py | 2367 | def test_pipeline_error_midway(self): | CODE |
| LOW | huey/tests/test_api.py | 2385 | def test_pipeline_revoke_midway(self): | CODE |
| LOW | huey/tests/test_api.py | 2640 | def test_serialize_deserialize(self): | CODE |
| LOW | huey/tests/test_api.py | 2659 | def test_serialize_deserialize_signed(self): | CODE |
| LOW | huey/tests/test_api.py | 2702 | def test_disable_result_store(self): | CODE |
| 13 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | huey/__init__.py | 5 | CODE | |
| LOW | huey/__init__.py | 6 | CODE | |
| LOW | huey/__init__.py | 7 | CODE | |
| LOW | huey/__init__.py | 8 | CODE | |
| LOW | huey/__init__.py | 9 | CODE | |
| LOW | huey/__init__.py | 10 | CODE | |
| LOW | huey/__init__.py | 11 | CODE | |
| LOW | huey/__init__.py | 12 | CODE | |
| LOW | huey/__init__.py | 13 | CODE | |
| LOW | huey/__init__.py | 14 | CODE | |
| LOW | huey/__init__.py | 15 | CODE | |
| LOW | huey/__init__.py | 16 | CODE | |
| LOW | huey/__init__.py | 17 | CODE | |
| LOW | huey/__init__.py | 18 | CODE | |
| LOW | huey/__init__.py | 19 | CODE | |
| LOW | huey/__init__.py | 20 | CODE | |
| LOW | huey/__init__.py | 21 | CODE | |
| LOW | huey/tests/test_signals.py | 5 | CODE | |
| LOW | huey/tests/__init__.py | 1 | CODE | |
| LOW | huey/tests/__init__.py | 2 | CODE | |
| LOW | huey/tests/__init__.py | 3 | CODE | |
| LOW | huey/tests/__init__.py | 4 | CODE | |
| LOW | huey/tests/__init__.py | 5 | CODE | |
| LOW | huey/tests/__init__.py | 6 | CODE | |
| LOW | huey/tests/__init__.py | 7 | CODE | |
| LOW | huey/tests/__init__.py | 8 | CODE | |
| LOW | huey/tests/__init__.py | 9 | CODE | |
| LOW | huey/tests/__init__.py | 10 | CODE | |
| LOW | huey/tests/__init__.py | 11 | CODE | |
| LOW | huey/tests/__init__.py | 12 | CODE | |
| LOW | huey/tests/__init__.py | 13 | CODE | |
| LOW | huey/tests/__init__.py | 14 | CODE | |
| LOW | huey/tests/__init__.py | 15 | CODE | |
| LOW | huey/tests/__init__.py | 16 | CODE | |
| LOW | huey/tests/__init__.py | 17 | CODE | |
| LOW | huey/tests/test_mini.py | 11 | CODE | |
| LOW | huey/tests/__main__.py | 4 | CODE | |
| LOW | huey/contrib/sql_huey.py | 4 | CODE | |
| LOW | huey/contrib/mini.py | 16 | CODE | |
| LOW | huey/contrib/djhuey/__init__.py | 164 | CODE | |
| LOW | huey/contrib/djhuey/__init__.py | 158 | CODE | |
| LOW | huey/contrib/djhuey/__init__.py | 161 | CODE | |
| LOW | huey/contrib/flask_admin/__init__.py | 1 | CODE | |
| LOW | huey/contrib/flask_admin/__init__.py | 2 | CODE | |
| LOW | huey/contrib/flask_admin/__init__.py | 5 | CODE | |
| LOW | examples/mini/mini.py | 2 | CODE | |
| LOW | examples/simple/amain.py | 10 | CODE | |
| LOW | examples/simple/tasks.py | 6 | CODE | |
| LOW | examples/simple/main.py | 6 | CODE | |
| LOW | examples/flask_ex/main.py | 2 | CODE | |
| LOW | examples/flask_ex/main.py | 3 | CODE | |
| LOW | examples/flask_ex/main.py | 4 | CODE | |
| LOW | examples/django_ex/djangoex/test_app/apps.py | 10 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | huey/api.py | 294 | except Exception: | CODE |
| LOW | huey/api.py | 507 | except Exception as exc: | CODE |
| LOW | huey/api.py | 616 | except Exception: | CODE |
| LOW | huey/api.py | 625 | except Exception: | CODE |
| LOW | huey/api.py | 739 | except Exception: | CODE |
| MEDIUM | huey/api.py | 291 | def _emit(self, signal, task, *args, **kwargs): | CODE |
| LOW⚡ | huey/consumer.py | 104 | except Exception: | CODE |
| LOW⚡ | huey/consumer.py | 112 | except Exception: | CODE |
| LOW⚡ | huey/consumer.py | 119 | except Exception: | CODE |
| LOW⚡ | huey/consumer.py | 127 | except Exception: | CODE |
| LOW | huey/consumer.py | 177 | except Exception: | CODE |
| MEDIUM | huey/storage.py | 981 | def put_if_empty(self, key, value): | CODE |
| LOW | huey/storage.py | 485 | except Exception: | CODE |
| LOW | huey/storage.py | 795 | except Exception: | CODE |
| LOW | huey/storage.py | 1159 | except Exception: | CODE |
| LOW | huey/storage.py | 1580 | except Exception: | CODE |
| LOW | huey/bin/huey_consumer.py | 20 | except Exception: | CODE |
| MEDIUM | huey/bin/huey_consumer.py | 17 | def load_huey(path): | CODE |
| LOW | huey/tests/test_storage.py | 47 | except Exception: | CODE |
| LOW | huey/tests/test_postgres.py | 26 | except Exception: | CODE |
| LOW | huey/tests/test_postgres.py | 161 | except Exception: | CODE |
| LOW | huey/contrib/mini.py | 96 | except Exception as exc: | CODE |
| LOW | huey/contrib/mini.py | 130 | except Exception: | CODE |
| LOW | huey/contrib/stats.py | 158 | except Exception: | CODE |
| LOW | huey/contrib/stats.py | 195 | except Exception: | CODE |
| LOW | huey/contrib/stats.py | 220 | except Exception: | CODE |
| LOW⚡ | huey/contrib/stats.py | 318 | except Exception: | CODE |
| LOW⚡ | huey/contrib/stats.py | 327 | except Exception: | CODE |
| LOW⚡ | huey/contrib/stats.py | 335 | except Exception: | CODE |
| LOW⚡ | huey/contrib/stats.py | 344 | except Exception: | CODE |
| MEDIUM | huey/contrib/stats.py | 134 | def _on_signal(self, signal, task, exc=None): | CODE |
| MEDIUM | huey/contrib/stats.py | 323 | def pending_tasks(huey, limit=50): | CODE |
| MEDIUM | huey/contrib/stats.py | 331 | def scheduled_tasks(huey, limit=50): | CODE |
| LOW | huey/contrib/djhuey/tasks_backend.py | 167 | except Exception as exc: | CODE |
| LOW | huey/contrib/djhuey/stats/apps.py | 58 | except Exception: | CODE |
| LOW | huey/contrib/djhuey/stats/admin.py | 145 | except Exception: | CODE |
| LOW | huey/contrib/flask_admin/panel.py | 50 | except Exception: | CODE |
| LOW | huey/contrib/flask_admin/panel.py | 96 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | huey/api.py | 79 | # Create a huey instance. | STRING |
| MEDIUM | huey/consumer.py | 333 | # Create the execution environment helper. | COMMENT |
| MEDIUM | huey/consumer.py | 339 | # Create the event used to signal the process should terminate. We'll | COMMENT |
| MEDIUM | huey/consumer.py | 354 | # Create the scheduler process (but don't start it yet). | COMMENT |
| MEDIUM | huey/consumer.py | 358 | # Create the worker process(es) (also not started yet). | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | huey/api.py | 1381 | CODE | |
| LOW | huey/api.py | 1020 | CODE | |
| LOW | huey/consumer.py | 115 | CODE | |
| LOW | huey/utils.py | 90 | CODE | |
| LOW | huey/storage.py | 958 | CODE | |
| LOW | huey/contrib/sql_huey.py | 19 | CODE | |
| LOW | huey/contrib/mini.py | 107 | CODE | |
| LOW | huey/contrib/stats.py | 134 | CODE | |
| LOW | huey/contrib/stats.py | 169 | CODE | |
| LOW | huey/contrib/djhuey/stats/admin.py | 121 | CODE | |
| LOW | huey/contrib/flask_admin/panel.py | 74 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | huey/api.py | 92 | CODE | |
| LOW | huey/api.py | 172 | CODE | |
| LOW | huey/api.py | 190 | CODE | |
| LOW | huey/api.py | 831 | CODE | |
| LOW | huey/api.py | 1020 | CODE | |
| LOW | huey/consumer.py | 293 | CODE | |
| LOW | huey/storage.py | 434 | CODE | |
| LOW | huey/storage.py | 842 | CODE | |
| LOW | huey/contrib/valkey_glide.py | 18 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | huey/storage.py | 854 | # is needed, then we will utilize Sqlite's AUTOINCREMENT functionality, | COMMENT |
| LOW | huey/tests/test_api.py | 851 | # it to re-read. Attempting to read again will just return the cached | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | huey/utils.py | 25 | logger = logging.getLogger(__name__) | CODE |
| LOW | huey/contrib/djhuey/management/commands/run_huey.py | 11 | logger = logging.getLogger(__name__) | CODE |
| LOW | huey/contrib/flask_admin/__init__.py | 14 | __all__ = ['HueyPanel', 'HueyStats', 'enable_stats'] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | huey/consumer.py | 429 | # Check if gevent is used, and if monkey-patch applied properly. | COMMENT |