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.
- package/package.json +1 -1
- package/src/server.js +5 -1
package/package.json
CHANGED
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
|
-
|
|
92
|
+
if (!SKIP_DATABASE_MIGRATION) {
|
|
93
|
+
await initDatabaseWithMigrations();
|
|
94
|
+
}
|
|
91
95
|
|
|
92
96
|
// Initialize system queue
|
|
93
97
|
async function initializeSystemQueue() {
|