@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 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).catch((err) => {
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
  }