#1 Durable ingestion jobs; transactions refuse to commit after a failed statement

Scalone
dcovington scala 1 commity/ów z phase3-context do master 9 godzin temu
dcovington skomentował(-a) 9 godzin temu
  • Ingestion stores the job and its input before processing (migration adds jobs.payload). Default: processed in the request (201/200); “async”: true answers 202 and the worker publishes it. Interrupted jobs (5 min lease) and internal errors are retried by the worker, at most 3 attempts; other failures wait for POST /jobs/:id/retry. Permission is re-checked at processing time. Claims are conditional updates; publishing and the job update share one transaction, so retries and duplicate submissions never publish duplicate chunks (FR-016, NFR-002, AC-12)
  • core/lib.Jobs.asp shared by the controller and scripts/embed.asp (actions jobs, worker)
  • Fix: a DAL call resets Err, so multi-statement transactions could lose an early failure and commit a partial write (seen as a duplicate document under concurrent ingests). Database_Class records the first error in an open transaction and CommitTransaction rolls back and raises
  • Tests: phase3-jobs.sh (41) with tests/fixtures/job_state.asp; all nine suites pass

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

- Ingestion stores the job and its input before processing (migration adds jobs.payload). Default: processed in the request (201/200); "async": true answers 202 and the worker publishes it. Interrupted jobs (5 min lease) and internal errors are retried by the worker, at most 3 attempts; other failures wait for POST /jobs/:id/retry. Permission is re-checked at processing time. Claims are conditional updates; publishing and the job update share one transaction, so retries and duplicate submissions never publish duplicate chunks (FR-016, NFR-002, AC-12) - core/lib.Jobs.asp shared by the controller and scripts/embed.asp (actions jobs, worker) - Fix: a DAL call resets Err, so multi-statement transactions could lose an early failure and commit a partial write (seen as a duplicate document under concurrent ingests). Database_Class records the first error in an open transaction and CommitTransaction rolls back and raises - Tests: phase3-jobs.sh (41) with tests/fixtures/job_state.asp; all nine suites pass Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dcovington zamknął(-ęła) 9 godzin temu
Pull Request został scalony jako 067b2767b6.
Zaloguj się, aby dołączyć do tej rozmowy.
Brak etykiety
Brak kamienia milowego
Brak przypisanych
Uczestnicy 1
Termin realizacji

Brak ustawionego terminu realizacji.

Zależności

Ten Pull Request nie zawiera w tej chwili żadnych zależności.

Ładowanie…
Anuluj
Zapisz
Nie ma jeszcze treści.

Powered by TurnKey Linux.