lopata 0.8.1 → 0.8.3
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/package.json +1 -1
- package/src/bindings/workflow.ts +3 -3
package/package.json
CHANGED
package/src/bindings/workflow.ts
CHANGED
|
@@ -1151,12 +1151,12 @@ export class SqliteWorkflowBinding {
|
|
|
1151
1151
|
): void {
|
|
1152
1152
|
const resolvedLimits = limits ?? WORKFLOW_DEFAULTS
|
|
1153
1153
|
const resolvedClock = clock ?? realClock
|
|
1154
|
-
const instance = new workflowClass({}, env)
|
|
1155
|
-
const step = new WorkflowStepImpl(abortController.signal, db, id, resolvedLimits, resolvedClock)
|
|
1156
|
-
const event = { payload: params, timestamp: new Date(createdAt ?? resolvedClock.now()), instanceId: id }
|
|
1157
1154
|
;(async () => {
|
|
1158
1155
|
let workflowTraceId: string | undefined
|
|
1159
1156
|
try {
|
|
1157
|
+
const instance = new workflowClass({ waitUntil: () => {} }, env)
|
|
1158
|
+
const step = new WorkflowStepImpl(abortController.signal, db, id, resolvedLimits, resolvedClock)
|
|
1159
|
+
const event = { payload: params, timestamp: new Date(createdAt ?? resolvedClock.now()), instanceId: id }
|
|
1160
1160
|
const result = await startSpan({
|
|
1161
1161
|
name: `workflow ${workflowName ?? 'run'}`,
|
|
1162
1162
|
kind: 'server',
|