Skip to content

Commit e5bf796

Browse files
authored
Merge pull request #1378 from OpenFn/debug-step-complete
Worker: add debugging to step complete payload
2 parents ef4a802 + f33dc9b commit e5bf796

3 files changed

Lines changed: 14 additions & 1 deletion

File tree

packages/ws-worker/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# ws-worker
22

3+
## 1.23.7
4+
5+
### Patch Changes
6+
7+
- 27ec317: Add debug logging to step-complete payloads
8+
39
## 1.23.6
410

511
### Patch Changes

packages/ws-worker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openfn/ws-worker",
3-
"version": "1.23.6",
3+
"version": "1.23.7",
44
"description": "A Websocket Worker to connect Lightning to a Runtime Engine",
55
"main": "dist/index.js",
66
"type": "module",

packages/ws-worker/src/events/step-complete.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,5 +82,12 @@ export default async function onStepComplete(
8282

8383
Object.assign(evt, reason);
8484

85+
const { output_dataclip, ...eventWithoutDataclip } = evt;
86+
context.logger?.debug(
87+
`${context.id} step-complete payload: ${JSON.stringify(
88+
eventWithoutDataclip
89+
)}`
90+
);
91+
8592
return sendEvent<StepCompletePayload>(context, STEP_COMPLETE, evt);
8693
}

0 commit comments

Comments
 (0)