forked from 0xWheatyz/SPARC
Persist job state to PostgreSQL so batch results survive API restarts #1354
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
Roadmap item: P1 Error handling and resilience
The
_jobsdict is stored in memory only. Any API restart clears all in-flight and completed job state, making async batch results unavailable to clients.What to do
jobstable in PostgreSQL (columns:job_id,status,created_at,updated_at,resultas JSONB,error)._jobswith database queries.Acceptance criteria
GET /jobs/{job_id}returns correct status after a restart.[Repo Manager] This issue has already been resolved on the main branch. Verified by code inspection during triage. Closing.