[PR #2346] lib: Execute Sends in the superstep that originated them (feature-flagged) #2644

Closed
opened 2026-02-20 17:47:20 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/langchain-ai/langgraph/pull/2346

State: closed
Merged: Yes


  • Currently this behavior is opt-in, behind a feature flag
  • Keep old code path for compatibility with existing checkpoints
  • Keep a similar order of application of updates, in some cases there will be no visible change
  • Update task path for Sends to contain the path of all the parent tasks (multiple parents when a Send task creates another Send)
  • That lineage path is used to ensure order of application of updates respects their logical lineage (ie updates from parents always applied before their child tasks)
  • Move Interrupt writes to use negative indexes, which allow replacing/shadowing (when task is re-run it may interrupt again, or succeed)
  • Runner will now attempt to schedule new Send tasks as soon as the write is received (ie while the originating node is still running)
  • Update kafka scheduler to support new Send behavior
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/2346 **State:** closed **Merged:** Yes --- - Currently this behavior is opt-in, behind a feature flag - Keep old code path for compatibility with existing checkpoints - Keep a similar order of application of updates, in some cases there will be no visible change - Update task path for Sends to contain the path of all the parent tasks (multiple parents when a Send task creates another Send) - That lineage path is used to ensure order of application of updates respects their logical lineage (ie updates from parents always applied before their child tasks) - Move Interrupt writes to use negative indexes, which allow replacing/shadowing (when task is re-run it may interrupt again, or succeed) - Runner will now attempt to schedule new Send tasks as soon as the write is received (ie while the originating node is still running) - Update kafka scheduler to support new Send behavior
yindo added the pull-request label 2026-02-20 17:47:20 -05:00
yindo closed this issue 2026-02-20 17:47:20 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#2644