Repository navigation
feat(jobs): implement Phase 4.5 background workers and job orchestration foundation - #41
Merged
Merged
Conversation
|
Caution Review failedThe pull request is closed. Finishing Touches
Comment |
16 of 26 tasks
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.
Executive Summary
Phase 4.5 delivers the durable background job processing and asynchronous orchestration subsystem for DERA. Built upon PostgreSQL platform persistence (
dera_jobs,dera_job_outbox) and distributed message queues (Celery/Redis), it provides at-least-once transactional outbox delivery, atomic Compare-And-Swap (CAS) worker claiming, workspace-scoped idempotency, and cooperative cancellation without introducing non-deterministic AI or remote code execution risks.Primary Deliverables
apps/api/src/dera_api/jobs/dispatcher.py):apps/api/src/dera_api/workers/):acks_late=True,worker_prefetch_multiplier=1, zero pickle deserialization.apps/api/src/dera_api/jobs/registry.py):system.health_probe.v1,system.noop.v1).apps/api/src/dera_api/api/v1/endpoints/jobs.py):POST /api/v1/workspaces/{workspace_id}/jobs(requiresjob:create)GET /api/v1/workspaces/{workspace_id}/jobs(requiresjob:read)GET /api/v1/workspaces/{workspace_id}/jobs/{job_id}(requiresjob:read)POST /api/v1/workspaces/{workspace_id}/jobs/{job_id}/cancel(requiresjob:cancel)003_jobs_and_orchestration.pyintroducingdera_jobsanddera_job_outbox.docs/jobs/.docs/audit/PHASE_4_5_JOBS_ACCEPTANCE.md.Test Telemetry