@voltagent/core 0.1.85 → 0.1.86
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/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +11 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -19667,14 +19667,21 @@ https://voltagent.dev/docs/observability/developer-console/#migration-guide-from
|
|
|
19667
19667
|
try {
|
|
19668
19668
|
await this.workflowRegistry.suspendAllActiveWorkflows();
|
|
19669
19669
|
this.logger.info("[VoltAgent] All workflows suspended, exiting...");
|
|
19670
|
-
|
|
19670
|
+
if (this.isSoleSignalHandler(signal)) {
|
|
19671
|
+
process.exit(0);
|
|
19672
|
+
}
|
|
19671
19673
|
} catch (error) {
|
|
19672
19674
|
this.logger.error("[VoltAgent] Error during shutdown:", { error });
|
|
19673
|
-
|
|
19675
|
+
if (this.isSoleSignalHandler(signal)) {
|
|
19676
|
+
process.exit(1);
|
|
19677
|
+
}
|
|
19674
19678
|
}
|
|
19675
19679
|
}, "shutdown");
|
|
19676
|
-
process.
|
|
19677
|
-
process.
|
|
19680
|
+
process.once("SIGTERM", () => shutdown("SIGTERM"));
|
|
19681
|
+
process.once("SIGINT", () => shutdown("SIGINT"));
|
|
19682
|
+
}
|
|
19683
|
+
isSoleSignalHandler(event) {
|
|
19684
|
+
return process.listeners(event).length === 1;
|
|
19678
19685
|
}
|
|
19679
19686
|
/**
|
|
19680
19687
|
* Check for dependency updates
|