[PR #3110] Fix timing issue where a sync task would finish before the other one was registered in futures dict #3095

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

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

State: closed
Merged: Yes


  • this was not possible in async where all done callbacks are called in next tick
  • in sync case this would manifest as the first task done callback seeing counter == 1 and thus setting event
  • the fix is to unset the event whenever a task is scheduled
**Original Pull Request:** https://github.com/langchain-ai/langgraph/pull/3110 **State:** closed **Merged:** Yes --- - this was not possible in async where all done callbacks are called in next tick - in sync case this would manifest as the first task done callback seeing counter == 1 and thus setting event - the fix is to unset the event whenever a task is scheduled
yindo added the pull-request label 2026-02-20 17:48:04 -05:00
yindo closed this issue 2026-02-20 17:48:04 -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#3095