@yemi33/minions 0.1.2419 → 0.1.2421
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/dashboard.js +5 -1
- package/docs/demo/memory-system.html +1431 -0
- package/docs/demo/memory-system.js +208 -0
- package/docs/index.html +5 -2
- package/docs/managed-spawn.md +10 -9
- package/engine/managed-spawn-launcher.js +51 -0
- package/engine/managed-spawn.js +112 -19
- package/engine/process-utils.js +33 -0
- package/engine.js +20 -8
- package/package.json +1 -1
package/dashboard.js
CHANGED
|
@@ -12280,7 +12280,11 @@ What would you like to discuss or change? When you're happy, say "approve" and I
|
|
|
12280
12280
|
// by a potentially-60s timeout_s. The loop self-flips state.healthy.
|
|
12281
12281
|
const newSpec = managedSpawn.listManagedSpecs().find(s => s && s.name === name);
|
|
12282
12282
|
if (newSpec && newSpec.healthcheck) {
|
|
12283
|
-
managedSpawn.waitForFirstHealth(newSpec).
|
|
12283
|
+
managedSpawn.waitForFirstHealth(newSpec, { exit: runtime.exit }).then((result) => {
|
|
12284
|
+
if (!result.healthy) {
|
|
12285
|
+
shared.log('warn', `managed-processes restart: first health failed for ${name}: ${result.error}`);
|
|
12286
|
+
}
|
|
12287
|
+
}).catch((err) => {
|
|
12284
12288
|
shared.log('warn', `managed-processes restart: waitForFirstHealth failed for ${name}: ${err.message}`);
|
|
12285
12289
|
});
|
|
12286
12290
|
}
|