learning_ai_common_plat/services/platform-service/src/modules/jobs
saravanakumardb1 15e24e5710 feat(platform): Phase 1 — Durable Event Bus + Worker Runtime
- New module: event-subscriptions/ (types, repository, routes, 15 tests)
  - Subscription CRUD: create/list/get/update/delete event subscriptions
  - DLQ: list/retry/delete/purge dead-letter queue entries
  - Event replay: POST /events/replay by topic + time range
- New lib: event-dispatcher.ts — subscription-driven dispatch with retry + DLQ
- New lib: event-store-bridge.ts — persistent event log for replay capability
- Worker runtime hardening (jobs/runner.ts):
  - Concurrency limit (MAX_CONCURRENT_JOBS=5)
  - Stuck-job recovery (10min threshold)
  - Graceful shutdown (30s drain)
  - Active job tracking + diagnostics (getActiveJobs/getActiveJobCount)
  - Per-job dedup (skip if already running)
- Wired dispatcher + event-subscriptions into server.ts startup
- Cosmos containers: event_subscriptions, event_dlq, event_log
- 1,293 tests passing (15 new)
2026-03-20 03:12:54 -07:00
..
built-in-jobs.ts fix(jobs): implement stub job handlers with actual functionality 2026-03-02 10:19:15 -08:00
cron.ts feat(platform): add P0 foundational modules — event bus, scheduled jobs, password reset, email verification, status page 2026-02-28 02:29:08 -08:00
jobs.api-key.test.ts feat(api-key): restrict job operations to service tokens 2026-03-15 09:08:38 +00:00
jobs.test.ts feat(platform): add P0 foundational modules — event bus, scheduled jobs, password reset, email verification, status page 2026-02-28 02:29:08 -08:00
registry.ts feat(platform): add P0 foundational modules — event bus, scheduled jobs, password reset, email verification, status page 2026-02-28 02:29:08 -08:00
repository.ts refactor(platform-service): migrate remaining 14 repositories to @bytelyst/datastore 2026-03-02 01:06:24 -08:00
routes.ts feat(ratelimit): back api throttles with datastore 2026-03-15 09:37:03 +00:00
runner.test.ts feat(platform-service): add durable run tracking 2026-03-14 16:08:07 +00:00
runner.ts feat(platform): Phase 1 — Durable Event Bus + Worker Runtime 2026-03-20 03:12:54 -07:00
types.ts Fix prototype service runtime dependencies 2026-03-14 05:32:21 +00:00