Skip to content

Commit 7a4e757

Browse files
committed
fix(cli): processTask compile error (#879)
1 parent 23dbf81 commit 7a4e757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/actor-core-cli/src/workflow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ export function workflow(
234234
let renderUtils: ReturnType<typeof render> | null = null;
235235

236236
async function* runner<T extends UserFnReturnType>(
237-
meta: TaskMetadata,
237+
meta: TaskMetadata & { processTask: (task: WorkflowAction.All) => void },
238238
name: string,
239239
taskFn: (ctx: Context) => T,
240240
opts: TaskOptions = {},
@@ -243,7 +243,7 @@ export function workflow(
243243
const p = WorkflowAction.progress.bind(null, { ...meta, id, name, opts });
244244
yield p("running");
245245
try {
246-
const output = taskFn(createContext({ ...meta, id, name, opts }));
246+
const output = taskFn(createContext({ ...meta, id, name, opts, processTask: meta.processTask }));
247247
if (output instanceof Promise) {
248248
const result = await output;
249249
yield p("done", { result, ...opts });

0 commit comments

Comments
 (0)