forked from 0xWheatyz/SPARC
Persist async job state to PostgreSQL so job results survive API restarts #1622
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
_jobsdictionary in the API is held purely in memory. Any API pod restart or crash loses all in-flight and completed job records, leaving users unable to retrieve results.What to do
jobstable in PostgreSQL with columns:id(UUID PK),status(enum: pending/running/completed/failed),created_at,updated_at,result(JSONB),error(text)._jobswith database queries.Acceptance criteria
/jobs/{job_id}returns correct status and results from the database.This issue has been resolved by previously merged PRs. The feature is already implemented in the codebase on main.
Closing as already resolved.