@checkstack/queue-api 0.0.6 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,32 @@
1
1
  # @checkstack/queue-api
2
2
 
3
+ ## 0.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 180be38: # Queue Lag Warning
8
+
9
+ Added a queue lag warning system that displays alerts when pending jobs exceed configurable thresholds.
10
+
11
+ ## Features
12
+
13
+ - **Backend Stats API**: New `getStats`, `getLagStatus`, and `updateLagThresholds` RPC endpoints
14
+ - **Signal-based Updates**: `QUEUE_LAG_CHANGED` signal for real-time frontend updates
15
+ - **Aggregated Stats**: `QueueManager.getAggregatedStats()` sums stats across all queues
16
+ - **Configurable Thresholds**: Warning (default 100) and Critical (default 500) thresholds stored in config
17
+ - **Dashboard Integration**: Queue lag alert displayed on main Dashboard (access-gated)
18
+ - **Queue Settings Page**: Lag alert and Performance Tuning guidance card with concurrency tips
19
+
20
+ ## UI Changes
21
+
22
+ - Queue lag alert banner appears on Dashboard and Queue Settings when pending jobs exceed thresholds
23
+ - New "Performance Tuning" card with concurrency settings guidance and bottleneck indicators
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies [7a23261]
28
+ - @checkstack/backend-api@0.3.2
29
+
3
30
  ## 0.0.6
4
31
 
5
32
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/queue-api",
3
- "version": "0.0.6",
3
+ "version": "0.1.0",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "dependencies": {
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import type { Queue } from "./queue";
2
+ import type { Queue, QueueStats } from "./queue";
3
3
  import type { Migration, Logger } from "@checkstack/backend-api";
4
4
 
5
5
  export interface QueuePlugin<Config = unknown> {
@@ -84,6 +84,12 @@ export interface QueueManager {
84
84
  */
85
85
  getInFlightJobCount(): Promise<number>;
86
86
 
87
+ /**
88
+ * Get aggregated statistics across all queues.
89
+ * Used for monitoring and lag detection.
90
+ */
91
+ getAggregatedStats(): Promise<QueueStats>;
92
+
87
93
  /**
88
94
  * List all recurring jobs across all queues.
89
95
  * Used for migration preview.