Feature: Add a new graph executor based on Web Workers #241

Closed
opened 2026-02-15 18:14:57 -05:00 by yindo · 0 comments
Owner

Originally created by @benjamincburns on GitHub (Apr 28, 2025).

In Python cancellation works by forcibly halting currently executing futures. JS doesn't support this sort of operation on promises, forcing users to manage and watch their AbortSignals carefully.

If we were to execute nodes as WebWorkers, we'd be able to mimic the Python behavior and allow for faster/cleaner cancelation behavior. This should be an opt-in feature, defaulting to the current async/promise-based execution mode.

Originally created by @benjamincburns on GitHub (Apr 28, 2025). In Python cancellation works by forcibly halting currently executing futures. JS doesn't support this sort of operation on promises, forcing users to manage and watch their `AbortSignals` carefully. If we were to execute nodes as WebWorkers, we'd be able to mimic the Python behavior and allow for faster/cleaner cancelation behavior. This should be an opt-in feature, defaulting to the current async/promise-based execution mode.
yindo added the enhancement label 2026-02-15 18:14:57 -05:00
yindo closed this issue 2026-02-15 18:14:57 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraphjs#241