Skip to content

fix: Handle reusing queue on task events#32

Merged
kthota-g merged 2 commits intomainfrom
kthota/queuehandling
May 16, 2025
Merged

fix: Handle reusing queue on task events#32
kthota-g merged 2 commits intomainfrom
kthota/queuehandling

Conversation

@kthota-g
Copy link
Contributor

During streaming, a queue is setup with a default task_id. If an agent returns task objects with the same task_id, we will reuse the default queue.

If a new task_id is returned from the agent, we will log this as warning and create a new queue for the provided task object.

@kthota-g kthota-g requested a review from a team as a code owner May 16, 2025 00:22
@kthota-g kthota-g changed the title Handle reusing queue on task events fix: Handle reusing queue on task events May 16, 2025
@kthota-g kthota-g merged commit c027843 into main May 16, 2025
3 checks passed
@kthota-g kthota-g deleted the kthota/queuehandling branch May 16, 2025 02:08
martimfasantos pushed a commit to martimfasantos/a2a-python that referenced this pull request May 23, 2025
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.

2 participants