@openfn/engine-multi
Advanced tools
Comparing version 0.2.5 to 0.2.6
# engine-multi | ||
## 0.2.6 | ||
### Patch Changes | ||
- 5c45e1e: Remove response key from state | ||
- Updated dependencies [56b6e44] | ||
- @openfn/runtime@0.2.4 | ||
## 0.2.5 | ||
@@ -4,0 +12,0 @@ |
@@ -128,2 +128,3 @@ import { JSONLog, Logger, SanitizePolicies } from '@openfn/logger'; | ||
version: string; | ||
options: EngineOptions; | ||
listen(attemptId: string, listeners: any): void; | ||
@@ -160,2 +161,3 @@ execute(plan: ExecutionPlan, options?: Partial<EngineOptions>): Pick<EventEmitter, 'on' | 'off' | 'once'>; | ||
purge?: boolean; | ||
statePropsToRemove?: string[]; | ||
}; | ||
@@ -162,0 +164,0 @@ |
@@ -497,3 +497,4 @@ // src/api.ts | ||
adaptorPaths, | ||
whitelist: options.whitelist | ||
whitelist: options.whitelist, | ||
statePropsToRemove: options.statePropsToRemove | ||
}; | ||
@@ -568,3 +569,3 @@ const events = { | ||
name: "@openfn/engine-multi", | ||
version: "0.2.5", | ||
version: "0.2.6", | ||
description: "Multi-process runtime engine", | ||
@@ -789,7 +790,13 @@ main: "dist/index.js", | ||
memoryLimitMb: options.memoryLimitMb || DEFAULT_MEMORY_LIMIT, | ||
purge: options.hasOwnProperty("purge") ? options.purge : true | ||
purge: options.hasOwnProperty("purge") ? options.purge : true, | ||
statePropsToRemove: options.statePropsToRemove ?? [ | ||
"configuration", | ||
"response" | ||
] | ||
}; | ||
logger.info(`memory limit set to ${options.memoryLimitMb}mb`); | ||
logger.info(`statePropsToRemove set to: `, engineOptions.statePropsToRemove); | ||
const engine = await engine_default(engineOptions); | ||
return { | ||
options: engineOptions, | ||
version: package_default.version, | ||
@@ -796,0 +803,0 @@ execute: engine.execute, |
@@ -115,3 +115,3 @@ // src/worker/worker.ts | ||
run: (plan, runOptions) => { | ||
const { adaptorPaths, whitelist, sanitize } = runOptions; | ||
const { adaptorPaths, whitelist, sanitize, statePropsToRemove } = runOptions; | ||
const { logger, jobLogger } = createLoggers(plan.id, sanitize); | ||
@@ -127,2 +127,3 @@ const options = { | ||
}, | ||
statePropsToRemove, | ||
callbacks: { | ||
@@ -129,0 +130,0 @@ // TODO: this won't actually work across the worker boundary |
{ | ||
"name": "@openfn/engine-multi", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "Multi-process runtime engine", | ||
@@ -13,4 +13,4 @@ "main": "dist/index.js", | ||
"@openfn/compiler": "0.0.38", | ||
"@openfn/runtime": "0.2.3", | ||
"@openfn/logger": "0.0.19" | ||
"@openfn/logger": "0.0.19", | ||
"@openfn/runtime": "0.2.4" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45047
1255
+ Added@openfn/runtime@0.2.4(transitive)
- Removed@openfn/runtime@0.2.3(transitive)
Updated@openfn/runtime@0.2.4