@ericsanchezok/synergy-util 3.0.0 → 3.0.2
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/plugin-policy.d.ts +2 -0
- package/dist/plugin-policy.js +2 -0
- package/package.json +1 -1
package/dist/plugin-policy.d.ts
CHANGED
|
@@ -9,6 +9,8 @@ export interface RuntimeLimits {
|
|
|
9
9
|
taskRunTimeoutMs: number;
|
|
10
10
|
shutdownGraceMs: number;
|
|
11
11
|
heartbeatIntervalMs: number;
|
|
12
|
+
maxMemoryMb: number;
|
|
13
|
+
memorySampleIntervalMs: number;
|
|
12
14
|
}
|
|
13
15
|
export type RuntimeLimitOverrides = Partial<RuntimeLimits>;
|
|
14
16
|
export interface PluginRuntimePolicyInput {
|
package/dist/plugin-policy.js
CHANGED
|
@@ -6,6 +6,8 @@ export const DEFAULT_PLUGIN_RUNTIME_LIMITS = {
|
|
|
6
6
|
taskRunTimeoutMs: 120_000,
|
|
7
7
|
shutdownGraceMs: 1_500,
|
|
8
8
|
heartbeatIntervalMs: 5_000,
|
|
9
|
+
maxMemoryMb: 512,
|
|
10
|
+
memorySampleIntervalMs: 5_000,
|
|
9
11
|
};
|
|
10
12
|
export function resolveRuntimeMode(input) {
|
|
11
13
|
return input.source === "builtin" ? "inProcess" : "process";
|