@checkstack/queue-api 0.0.6 → 0.1.1

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,39 @@
1
1
  # @checkstack/queue-api
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [d94121b]
8
+ - @checkstack/backend-api@0.3.3
9
+
10
+ ## 0.1.0
11
+
12
+ ### Minor Changes
13
+
14
+ - 180be38: # Queue Lag Warning
15
+
16
+ Added a queue lag warning system that displays alerts when pending jobs exceed configurable thresholds.
17
+
18
+ ## Features
19
+
20
+ - **Backend Stats API**: New `getStats`, `getLagStatus`, and `updateLagThresholds` RPC endpoints
21
+ - **Signal-based Updates**: `QUEUE_LAG_CHANGED` signal for real-time frontend updates
22
+ - **Aggregated Stats**: `QueueManager.getAggregatedStats()` sums stats across all queues
23
+ - **Configurable Thresholds**: Warning (default 100) and Critical (default 500) thresholds stored in config
24
+ - **Dashboard Integration**: Queue lag alert displayed on main Dashboard (access-gated)
25
+ - **Queue Settings Page**: Lag alert and Performance Tuning guidance card with concurrency tips
26
+
27
+ ## UI Changes
28
+
29
+ - Queue lag alert banner appears on Dashboard and Queue Settings when pending jobs exceed thresholds
30
+ - New "Performance Tuning" card with concurrency settings guidance and bottleneck indicators
31
+
32
+ ### Patch Changes
33
+
34
+ - Updated dependencies [7a23261]
35
+ - @checkstack/backend-api@0.3.2
36
+
3
37
  ## 0.0.6
4
38
 
5
39
  ### 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.1",
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.