Skip to content

2.1.0

Latest

Choose a tag to compare

@soccermax soccermax released this 06 Apr 19:21
  • [CAP Queue] Add support for event chaining: register #succeeded and #failed successor handlers that are automatically triggered based on the outcome of an event handler. See documentation.
  • [CAP Queue] Add #done unconditional successor — fires after every event regardless of success or failure, analogous to a finally block. Useful for cleanup that must always run (releasing locks, audit events, etc.).
  • [CAP Queue] Successor handlers (#succeeded, #failed, #done) can be configured independently in the events section of the service's queued configuration, including event-specific variants (e.g. orderCreated/#succeeded).
  • [Telemetry] Add opt-in event queue metrics (collectEventQueueMetrics). When enabled together with Redis and an OpenTelemetry MeterProvider, the module publishes cap.event_queue.jobs.pending, cap.event_queue.jobs.in_progress, and cap.event_queue.stats.refresh_age as Observable Gauges, broken down by namespace. See documentation.