Skip to content

A parallel scope's step asks and records like the root executor's - #142

Merged
noha merged 1 commit into
mainfrom
parallel-step-protocol
Sep 10, 2026
Merged

noha merged 1 commit into
mainfrom
parallel-step-protocol

Conversation

@noha

@noha noha commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

FBParallelExecutor>>step now does the two things FBFlowExecutor>>step does around a transition: it asks the instance first (FBFlowInstance>>aboutToTransition:, where ApptiveBase counts its rate limits - a loop used to bypass them) and records an FBTransitionFollowed (a scope's log had no transitions at all). Both only for a transition actually followed, since inside a scope the branch condition is decided at the step; a refusal raised from the hook leaves the work item queued, as in the root executor.

FBProbingFlowInstance is a test double that records what it is asked and can refuse.

FBParallelExecutor>>step now does the two things FBFlowExecutor>>step
does around a transition: it asks the instance first
(FBFlowInstance>>aboutToTransition:, where ApptiveBase counts its rate
limits - a loop used to bypass them) and records an FBTransitionFollowed
(a scope's log had no transitions at all). Both only for a transition
actually followed, since inside a scope the branch condition is decided
at the step; a refusal raised from the hook leaves the work item queued,
as in the root executor.

FBProbingFlowInstance is a test double that records what it is asked and
can refuse.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@noha
noha merged commit 25d0b9d into main Sep 10, 2026
4 checks passed
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