queen-mq 0.1.3 → 0.1.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/server.js +5 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "queen-mq",
3
- "version": "0.1.3",
3
+ "version": "0.1.4",
4
4
  "type": "module",
5
5
  "description": "High-performance message queue backed by PostgreSQL",
6
6
  "main": "src/client/index.js",
package/src/server.js CHANGED
@@ -42,6 +42,8 @@ export async function QueenServer(options = {}) {
42
42
  // This ensures the same server (identified by WORKER_ID) maintains its position in the event stream
43
43
  const SERVER_INSTANCE_ID = options.workerId || config.SERVER.WORKER_ID;
44
44
 
45
+ const SKIP_DATABASE_MIGRATION = (options.skipDatabaseMigration || process.env.SKIP_DATABASE_MIGRATION) || false;
46
+
45
47
  // Performance monitoring
46
48
  let requestCount = 0;
47
49
  let messageCount = 0;
@@ -87,7 +89,9 @@ export async function QueenServer(options = {}) {
87
89
  }
88
90
  };
89
91
 
90
- await initDatabaseWithMigrations();
92
+ if (!SKIP_DATABASE_MIGRATION) {
93
+ await initDatabaseWithMigrations();
94
+ }
91
95
 
92
96
  // Initialize system queue
93
97
  async function initializeSystemQueue() {