@link-assistant/hive-mind 2.5.4 → 2.5.5
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 +6 -0
- package/package.json +1 -1
- package/src/queue-config.lib.mjs +5 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @link-assistant/hive-mind
|
|
2
2
|
|
|
3
|
+
## 2.5.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- e6ccdc1: Allow operators to lower the queue startup interval safety floor with `HIVE_MIND_MIN_START_INTERVAL_FLOOR_MS` while preserving the 10-minute default.
|
|
8
|
+
|
|
3
9
|
## 2.5.4
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/package.json
CHANGED
package/src/queue-config.lib.mjs
CHANGED
|
@@ -192,7 +192,8 @@ const parseIntWithDefault = (envVar, defaultValue) => {
|
|
|
192
192
|
return isNaN(parsed) ? defaultValue : parsed;
|
|
193
193
|
};
|
|
194
194
|
|
|
195
|
-
const
|
|
195
|
+
const DEFAULT_MINIMUM_START_INTERVAL_MS = 10 * 60 * 1000;
|
|
196
|
+
const minimumStartIntervalMs = parseIntWithDefault('HIVE_MIND_MIN_START_INTERVAL_FLOOR_MS', DEFAULT_MINIMUM_START_INTERVAL_MS);
|
|
196
197
|
|
|
197
198
|
// Parse links notation config from environment variable (if provided)
|
|
198
199
|
const linoConfig = parseQueueConfig(getenv('HIVE_MIND_QUEUE_CONFIG', ''));
|
|
@@ -276,7 +277,9 @@ export const QUEUE_CONFIG = {
|
|
|
276
277
|
// MIN_START_INTERVAL_MS: Minimum global spacing between task startups.
|
|
277
278
|
// Issue #2015: after resource thresholds clear, starting a backlog in a burst
|
|
278
279
|
// can kill the next batch before host metrics have time to settle.
|
|
279
|
-
|
|
280
|
+
// Issue #2053: operators can explicitly lower the safety floor on hosts where
|
|
281
|
+
// resource metrics settle sooner. The default remains 10 minutes.
|
|
282
|
+
MIN_START_INTERVAL_MS: Math.max(parseIntWithDefault('HIVE_MIND_MIN_START_INTERVAL_MS', DEFAULT_MINIMUM_START_INTERVAL_MS), minimumStartIntervalMs),
|
|
280
283
|
CONSUMER_POLL_INTERVAL_MS: parseIntWithDefault('HIVE_MIND_CONSUMER_POLL_INTERVAL_MS', 60000), // 1 minute between queue checks
|
|
281
284
|
MESSAGE_UPDATE_INTERVAL_MS: parseIntWithDefault('HIVE_MIND_MESSAGE_UPDATE_INTERVAL_MS', 60000), // 1 minute between status message updates
|
|
282
285
|
|