feat(#176): Integrate M4.2 infrastructure with M4.1 coordinator
Add CoordinatorIntegrationModule providing REST API endpoints for the Python coordinator to communicate with the NestJS API infrastructure: - POST /coordinator/jobs - Create job from coordinator webhook events - PATCH /coordinator/jobs/:id/status - Update job status (PENDING -> RUNNING) - PATCH /coordinator/jobs/:id/progress - Update job progress percentage - POST /coordinator/jobs/:id/complete - Mark job complete with results - POST /coordinator/jobs/:id/fail - Mark job failed with gate results - GET /coordinator/jobs/:id - Get job details with events and steps - GET /coordinator/health - Integration health check Integration features: - Job creation dispatches to BullMQ queues - Status updates emit JobEvents for audit logging - Completion/failure events broadcast via Herald to Discord - Status transition validation (PENDING -> QUEUED -> RUNNING -> COMPLETED/FAILED) - Health check includes BullMQ connection status and queue counts Also adds JOB_PROGRESS event type to event-types.ts for progress tracking. Fixes #176 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
export const JOB_CREATED = "job.created";
|
||||
export const JOB_QUEUED = "job.queued";
|
||||
export const JOB_STARTED = "job.started";
|
||||
export const JOB_PROGRESS = "job.progress";
|
||||
export const JOB_COMPLETED = "job.completed";
|
||||
export const JOB_FAILED = "job.failed";
|
||||
export const JOB_CANCELLED = "job.cancelled";
|
||||
@@ -36,6 +37,7 @@ export const ALL_EVENT_TYPES = [
|
||||
JOB_CREATED,
|
||||
JOB_QUEUED,
|
||||
JOB_STARTED,
|
||||
JOB_PROGRESS,
|
||||
JOB_COMPLETED,
|
||||
JOB_FAILED,
|
||||
JOB_CANCELLED,
|
||||
|
||||
Reference in New Issue
Block a user