Cloudflare-safe persistent jobs for Paperless worker - #7
Merged
Conversation
Feberdin
marked this pull request as ready for review
August 13, 2026 20:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ergebnis
Potentiell lange Worker-Endpunkte nehmen Arbeit nun per HTTP 202 an und liefern
job_id,request_idundstatus_url. SQLite hält Jobs über Reloads und Worker-Restarts persistent; schreibende Jobs sind serialisiert und werden nach Unterbrechung nicht automatisch wiederholt.Endpunkte
POST /api/run,/api/resume,/api/restartPOST /api/review/entities/jobsPOST /api/review/mergeGET /api/jobs/<job_id>GET /api/review/entitiesliefert jetzt 405Sicherheit und Betrieb
no-store, Session- statt Local-Storage für Bearer-Tokeninterrupteddocs/cloudflare-long-running-jobs.mdbeschriebenQualitätssicherung
Deployment
a15d18646e6a1e17f682593fd7fb183cfa9caed0e15532882f58a02e2a033d0f79e6b965eaad39a7plan_2a1fa82035aa41548368815a9020d1c5deploy_41850636966248e8ad741b415a86ce7dpaperless-kiplus-worker:1.4.21-e155328, Port 8788, healthyRollback bleibt über einen neuen Broker-Plan auf den vorherigen bekannten Commit möglich; die persistente
/data-Ablage wurde beibehalten.