Skip to content

fix: ScanLink worker and request stress failures (0.8.0b1) - #2

Merged
debeski merged 3 commits into
mainfrom
0.8/stress_fixes
Oct 25, 2026
Merged

debeski merged 3 commits into
mainfrom
0.8/stress_fixes

Conversation

@debeski

@debeski debeski commented Oct 25, 2026

Copy link
Copy Markdown
Owner

ScanLink could publish completion before the parent stored the PDF, miss the configured scan deadline, or queue malformed requests. The worker now owns terminal state publication and enforces both hard deadlines; public/protocol routes validate JSON, metadata and callbacks before scanning. Consumed PDFs keep metadata until the job TTL so competing downloads consistently yield one result and HTTP 410s.

The standalone browser client negotiates transport before scanning and sends each scan POST once. A lost accepted response returns scan_request_uncertain instead of resubmitting through the other transport. Paired with DjangoLux 1.15.1b2; candidate version is 0.8.0b1 as requested.

Validation: 40 local unit tests (one Windows-only skip), 24 paired JavaScript scenarios, real ScanWorker load with 1,000 HTTP/verified-HTTPS checks, 100 hash-verified PDFs, 50 busy submissions and 40 competing result downloads. Live testbed file-field/PDF editor, Arabic guidance, 30 scan cycles, 20-way contention and lost-response recovery passed. Hardware alone was simulated; native Windows CI gates must pass before release. Docs, changelog and tracker are updated.

@debeski
debeski merged commit a82aab7 into main Oct 25, 2026
3 checks passed
@debeski
debeski deleted the 0.8/stress_fixes branch October 30, 2026 09:20
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