Add two task processing modes: queue and immediate interrupt #1627
Gustave-241021
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Specific implementation and plan : #1604
Bonus:
Task Queue Behavior Change
This change addresses an issue where queued messages were visible to the currently executing task, potentially disrupting its execution. The new deferred queue ensures that queued tasks do not interfere with the active task, maintaining clear task boundaries and predictable behavior.
When a task is queued with
DeferredQueue=true, it will only be processed after the current task completes. This approach:This design aligns with how major AI agent products handle message queuing:
Future expansion can be referenced: #1412
Beta Was this translation helpful? Give feedback.
All reactions