Repository navigation
Conversation
Keep tasks in one ConcurrentHashMap of immutable TaskInfo values updated atomically, and add getTask for tasks/get. Signed-off-by: Hadi Rasouli <rasuli.hadi4@gmail.com>
Register message/send tasks so tasks/get can find them, return InternalError on failure and mark failed streams final. Signed-off-by: Hadi Rasouli <rasuli.hadi4@gmail.com>
Signed-off-by: Hadi Rasouli <rasuli.hadi4@gmail.com>
Signed-off-by: Hadi Rasouli <rasuli.hadi4@gmail.com>
Add embabel.agent.platform.a2a.server.task-retention (default 1h). TaskStateManager evicts tasks finished longer ago than that whenever a task is registered. Signed-off-by: Hadi Rasouli <rasuli.hadi4@gmail.com>
Signed-off-by: Hadi Rasouli <rasuli.hadi4@gmail.com>
hadirsa
force-pushed
the
fix/a2a-thread-safety-cleanup
branch
from
October 15, 2026 21:52
73ab653 to
4da1d3f
Compare
hadirsa
force-pushed
the
fix/a2a-thread-safety-cleanup
branch
3 times, most recently
from
October 16, 2026 05:06
cf027c5 to
4da1d3f
Compare
hadirsa
marked this pull request as ready for review
October 16, 2026 05:56
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #2034
Summary
TaskStateManagernow uses one map of immutableTaskInfovalues, updated atomically. The A2A services are@ThreadSafe, andA2AThreadSafetyRulesTestchecks them.tasks/getandtasks/cancel, storesmessage/sendtasks, and accepts multi-part messages. Failures returnInternalErrorwith the request id, and the streaming error event is final.TODOs.