dankgrinder 7.75.0 → 7.76.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/lib/grinder.js +3 -0
- package/package.json +1 -1
package/lib/grinder.js
CHANGED
|
@@ -129,6 +129,8 @@ let API_URL = '';
|
|
|
129
129
|
let REDIS_URL = process.env.REDIS_URL || '';
|
|
130
130
|
let redis = null;
|
|
131
131
|
let workers = [];
|
|
132
|
+
let startTime = 0;
|
|
133
|
+
let shutdownCalled = false;
|
|
132
134
|
|
|
133
135
|
// ── Cluster Mode Config ──────────────────────────────────────
|
|
134
136
|
// NODE_ID uniquely identifies this process in a multi-node cluster.
|
|
@@ -2739,6 +2741,7 @@ async function start(apiKey, apiUrl, opts = {}) {
|
|
|
2739
2741
|
API_KEY = apiKey;
|
|
2740
2742
|
API_URL = apiUrl || process.env.DANKGRINDER_URL || 'http://localhost:3000';
|
|
2741
2743
|
const CLOUD_MODE = opts.cloud === true;
|
|
2744
|
+
startTime = Date.now();
|
|
2742
2745
|
|
|
2743
2746
|
if (CLOUD_MODE) {
|
|
2744
2747
|
// In cloud mode, API_KEY is the CLOUD_ADMIN_KEY — not used for user auth.
|