Skip to content

Add transactional work queue (dispatcher/performer)#218

Merged
JE-Chen merged 2 commits into
devfrom
feat/work-queue
Jun 18, 2026
Merged

Add transactional work queue (dispatcher/performer)#218
JE-Chen merged 2 commits into
devfrom
feat/work-queue

Conversation

@JE-Chen

@JE-Chen JE-Chen commented Jun 18, 2026

Copy link
Copy Markdown
Member

Summary

From the round-2 multi-agent research (top pure-stdlib, high-value gap):
turn AutoControl from "run a script" into "run a robot." A SQLite-backed
work queue implements the production-RPA dispatcher/performer pattern
that the DAG/scheduler didn't cover — resumable after a crash,
parallelizable across performers.

What's added (full five-layer wiring)

  • Headless WorkQueue / WorkItem / BusinessError: add
    (dedup by reference), atomic get_next claim, complete, fail,
    stats, list_items — pure sqlite3.
  • Failure semantics (REFramework-style): application errors retry to
    max_retries; business errors never retry.
  • Executor: AC_queue_add / AC_queue_next / AC_queue_complete /
    AC_queue_fail / AC_queue_stats.
  • MCP tools: ac_queue_*. Script Builder: "Queue" entries.
  • Docs: v10 reference page (EN + Traditional Chinese) + README.

Testing

  • Headless tests on a temp SQLite file: FIFO claim, dedup, completion,
    application-vs-business retry semantics, stats, executor/MCP/builder
    wiring. ruff / radon / bandit clean; Qt-free; no orphan commands.

Turn AutoControl from "run a script" into "run a robot": a SQLite-backed
work queue with per-item status, dedup-by-reference, atomic claim, and
REFramework-style retry semantics (application errors retry to
max_retries; business errors never retry). Resumable after a crash and
parallelizable across performers — the production-RPA pattern that the
DAG/scheduler didn't cover. Wired through facade (WorkQueue / WorkItem /
BusinessError), AC_queue_add/next/complete/fail/stats executor commands,
ac_queue_* MCP tools, Script Builder "Queue" entries, headless tests, and
a v10 reference page (EN + Traditional Chinese) + README sections.
@codacy-production

codacy-production Bot commented Jun 18, 2026

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 39 complexity · 0 duplication

Metric Results
Complexity 39
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@JE-Chen JE-Chen merged commit 7b494f6 into dev Jun 18, 2026
16 checks passed
@JE-Chen JE-Chen deleted the feat/work-queue branch June 18, 2026 22:55
@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant