a little task queue for python
This report presents the forensic synthetic code analysis of coleifer/huey, a Python project with 5,984 GitHub stars. SynthScan v2.0 examined 14,434 lines of code across 95 source files, recording 193 pattern matches distributed across 10 syntactic categories. The overall adjusted score of 19.9 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).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
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 193 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 | 816 | 'queue text not null, key text not null, value blob not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 819 | 'id integer not null primary key, queue text not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 820 | 'data blob not null, timestamp real not null)') | CODE |
| HIGH⚡ | huey/storage.py | 824 | 'id integer not null primary key, queue text not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 825 | 'data blob not null, priority real not null default 0.0)') | CODE |
| HIGH⚡ | huey/storage.py | 829 | 'queue text not null, key text not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 1058 | 'queue text not null, key text not null, value bytea not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 1062 | 'id bigserial primary key, queue text not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 1063 | 'data bytea not null, timestamp double precision not null)', | CODE |
| HIGH⚡ | huey/storage.py | 1069 | 'id bigserial primary key, queue text not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 1070 | 'data bytea not null, ' | CODE |
| HIGH⚡ | huey/storage.py | 1077 | '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_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 | 210 | 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 | 111 | def test_result_store_methods(self): | CODE |
| LOW | huey/tests/test_storage.py | 199 | def test_consumer_integration(self): | CODE |
| LOW | huey/tests/test_storage.py | 231 | def test_put_if_empty_concurrent(self): | CODE |
| LOW | huey/tests/test_storage.py | 256 | def test_conflicting_init_args(self): | CODE |
| LOW | huey/tests/test_storage.py | 367 | def test_dequeue_error_handling(self): | CODE |
| LOW | huey/tests/test_storage.py | 385 | def test_wait_result_timeout_clamp(self): | CODE |
| LOW | huey/tests/test_storage.py | 411 | def test_enqueued_items_limit(self): | CODE |
| LOW | huey/tests/test_storage.py | 477 | def test_filesystem_result_store(self): | CODE |
| LOW | huey/tests/test_storage.py | 556 | 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 | 865 | def test_retries_with_override(self): | CODE |
| LOW | huey/tests/test_api.py | 968 | def test_retry_delay_periodic(self): | CODE |
| LOW | huey/tests/test_api.py | 1122 | def test_cancel_execution_task_retries(self): | CODE |
| LOW | huey/tests/test_api.py | 1326 | def test_dynamic_periodic_tasks(self): | CODE |
| LOW | huey/tests/test_api.py | 1581 | def test_group_error_chaining(self): | CODE |
| LOW | huey/tests/test_api.py | 1644 | def test_chord_result_handles(self): | CODE |
| LOW | huey/tests/test_api.py | 1755 | def test_chord_revoked_member(self): | CODE |
| LOW | huey/tests/test_api.py | 1781 | def test_chord_expired_member(self): | CODE |
| LOW | huey/tests/test_api.py | 1805 | def test_chord_member_retry_then_success(self): | CODE |
| LOW | huey/tests/test_api.py | 1891 | def test_chord_member_error_callback_independent(self): | CODE |
| LOW | huey/tests/test_api.py | 1930 | def test_chord_pipeline_member_tail_fails(self): | CODE |
| LOW | huey/tests/test_api.py | 1960 | def test_chord_pipeline_member_head_fails(self): | CODE |
| LOW | huey/tests/test_api.py | 1989 | def test_chord_pipeline_member_head_revoked(self): | CODE |
| LOW | huey/tests/test_api.py | 2142 | def test_nested_chord_callback_pipeline_tail_walking(self): | CODE |
| LOW | huey/tests/test_api.py | 2273 | def test_mixed_tasks_instances(self): | CODE |
| LOW | huey/tests/test_api.py | 2289 | def test_task_instances_args_kwargs(self): | CODE |
| LOW | huey/tests/test_api.py | 2332 | def test_error_callback_retries(self): | CODE |
| LOW | huey/tests/test_api.py | 2365 | def test_pipeline_error_midway(self): | CODE |
| LOW | huey/tests/test_api.py | 2383 | def test_pipeline_revoke_midway(self): | CODE |
| LOW | huey/tests/test_api.py | 2638 | def test_serialize_deserialize(self): | CODE |
| LOW | huey/tests/test_api.py | 2657 | def test_serialize_deserialize_signed(self): | CODE |
| LOW | huey/tests/test_api.py | 2700 | def test_disable_result_store(self): | CODE |
| LOW | huey/tests/test_api.py | 2739 | def test_intermediate_error_withheld(self): | CODE |
| LOW | huey/tests/test_consumer.py | 73 | def test_consumer_schedule_task(self): | CODE |
| LOW | huey/tests/test_consumer.py | 115 | def test_consumer_periodic_tasks(self): | CODE |
| LOW | huey/tests/test_consumer.py | 145 | def test_scheduler_periodic_catch_up(self): | CODE |
| LOW | huey/tests/test_consumer.py | 197 | def test_process_environment_uses_fork(self): | CODE |
| LOW | huey/tests/test_consumer.py | 220 | def test_process_worker_integration(self): | CODE |
| LOW | huey/tests/test_immediate.py | 45 | def test_immediate_scheduling(self): | CODE |
| LOW | huey/tests/test_immediate.py | 60 | def test_immediate_reschedule(self): | CODE |
| LOW | huey/tests/test_immediate.py | 85 | def test_immediate_revoke_restore(self): | CODE |
| LOW | huey/tests/test_immediate.py | 255 | def test_immediate_real_storage(self): | CODE |
| LOW | huey/tests/test_postgres.py | 53 | def test_blocking_dequeue_notify(self): | CODE |
| 2 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/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/__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 | 293 | except Exception: | CODE |
| LOW | huey/api.py | 506 | except Exception as exc: | CODE |
| LOW | huey/api.py | 615 | except Exception: | CODE |
| LOW | huey/api.py | 624 | except Exception: | CODE |
| LOW | huey/api.py | 737 | except Exception: | CODE |
| MEDIUM | huey/api.py | 290 | 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 | 973 | def put_if_empty(self, key, value): | CODE |
| LOW | huey/storage.py | 480 | except Exception: | CODE |
| LOW | huey/storage.py | 790 | except Exception: | CODE |
| LOW | huey/storage.py | 1118 | except Exception: | CODE |
| LOW | huey/storage.py | 1539 | 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 | 41 | 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 | 119 | except Exception: | CODE |
| LOW | huey/contrib/stats.py | 149 | except Exception: | CODE |
| LOW | huey/contrib/stats.py | 172 | except Exception: | CODE |
| LOW⚡ | huey/contrib/stats.py | 270 | except Exception: | CODE |
| LOW⚡ | huey/contrib/stats.py | 279 | except Exception: | CODE |
| LOW⚡ | huey/contrib/stats.py | 287 | except Exception: | CODE |
| LOW⚡ | huey/contrib/stats.py | 296 | except Exception: | CODE |
| MEDIUM | huey/contrib/stats.py | 95 | def _on_signal(self, signal, task, exc=None): | CODE |
| MEDIUM | huey/contrib/stats.py | 275 | def pending_tasks(huey, limit=50): | CODE |
| MEDIUM | huey/contrib/stats.py | 283 | 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 | 54 | except Exception: | CODE |
| LOW | huey/contrib/djhuey/stats/admin.py | 143 | 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 | 78 | # 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 | 1379 | CODE | |
| LOW | huey/api.py | 1018 | CODE | |
| LOW | huey/consumer.py | 115 | CODE | |
| LOW | huey/utils.py | 89 | CODE | |
| LOW | huey/storage.py | 950 | CODE | |
| LOW | huey/contrib/sql_huey.py | 19 | CODE | |
| LOW | huey/contrib/mini.py | 107 | CODE | |
| LOW | huey/contrib/stats.py | 95 | CODE | |
| LOW | huey/contrib/stats.py | 130 | CODE | |
| LOW | huey/contrib/djhuey/stats/admin.py | 119 | CODE | |
| LOW | huey/contrib/flask_admin/panel.py | 74 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | huey/api.py | 91 | CODE | |
| LOW | huey/api.py | 171 | CODE | |
| LOW | huey/api.py | 189 | CODE | |
| LOW | huey/api.py | 829 | CODE | |
| LOW | huey/api.py | 1018 | CODE | |
| LOW | huey/consumer.py | 293 | CODE | |
| LOW | huey/storage.py | 429 | CODE | |
| LOW | huey/storage.py | 835 | CODE | |
| LOW | huey/contrib/valkey_glide.py | 18 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | huey/storage.py | 847 | # is needed, then we will utilize Sqlite's AUTOINCREMENT functionality, | COMMENT |
| LOW | huey/tests/test_api.py | 849 | # it to re-read. Attempting to read again will just return the cached | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | huey/utils.py | 24 | 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 |