Skip to content

Node: report progress and logs from an attached executor #593

Description

@stromanni

Wire the Node executor's degraded operations to the side-channel from the core issue.

src/detached.ts currently drops updateProgress and writeTaskLog with a one-time warning. Both should reach the executor handle instead — the same shape isCancelRequested already uses to expose frame-delivered cancels to a running handler, so the seam exists.

getSetting keeps answering null: createTaskCallback's middlewareFor should take its disable list from the job frame rather than from MiddlewareDisableStore, which has no storage to read on an executor.

Durations and numeric fields stay in the Node conventions already used by ExecutorRunOptions.

Done when

test/worker/executorAttach.test.ts asserts, against the hermetic scheduler: currentJob().setProgress() produces a progress frame; currentJob().publish() produces a task_log at level result; and a middleware named in the job frame's disable list does not run. The gated executorAttachServer.test.ts confirms progress reaching storage through the real binary.

Parent issue carries the rationale.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestnodeNode SDK

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions