Skip to content

[Brook] Removed the Workflow Task hooks that no extension uses. - #205

Closed
moetemp wants to merge 1 commit into
moe/brook/v3/c4-local-activity-workflow-taskfrom
moe/brook/v4/c5-no-workflow-task-hooks
Closed

moetemp wants to merge 1 commit into
moe/brook/v3/c4-local-activity-workflow-taskfrom
moe/brook/v4/c5-no-workflow-task-hooks

Conversation

@moetemp

@moetemp moetemp commented Oct 22, 2026

Copy link
Copy Markdown
Owner

What changed?

This PR removes the Workflow Task hooks that no extension uses.
Removed: WorkflowTaskInterceptor and its info types (WorkflowTaskCompletionInfo, WorkflowTaskEpoch, WorkflowTaskFailedInfo, WorkflowTaskInterceptError, RunCloseKind), and WorkerExtension::workflow_task_interceptor. Also gone are the calls around each completion and on a failed task and an eviction, the History facts they needed (the task index of the machines, the previous started id, the receipt time, the first run id), and their core tests.
Kept: WorkerExtension with call and call_async, and ActivityTask.Start.workflow_task (field 20) with its stamp on each new Local Activity. sdk-python puts field 20 in a user Local Activity's Stream Producer epoch. The changelog drops the hook entries.

Why?

Decision S108. Workflow writes are a Local Activity per call, so the Stream crate (sdk-streams s19) no longer buffers per run, and nothing calls the hooks. They came in on this Brook chain (c1 to c4), so they go out on it too.

How did you test it?

cargo fmt --all -- --check, cargo lint, and cargo test -p temporalio-sdk-core --lib.

@moetemp

moetemp commented Oct 25, 2026

Copy link
Copy Markdown
Owner Author

Closing as stale. This layer is folded into the v5 tip, #209, and the upstream review uses one fresh PR instead. Plan: https://www.notion.so/4048fc567738814990b7c796ac28fe3f

@moetemp moetemp closed this Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant