Skip to content

fix: cap push notification configs per task - #1181

Open
ez-lbz wants to merge 2 commits into
a2aproject:mainfrom
ez-lbz:fix/push-config-limit
Open

fix: cap push notification configs per task#1181
ez-lbz wants to merge 2 commits into
a2aproject:mainfrom
ez-lbz:fix/push-config-limit

Conversation

@ez-lbz

@ez-lbz ez-lbz commented Aug 10, 2026

Copy link
Copy Markdown

No description provided.

@ez-lbz
ez-lbz requested a review from a team as a code owner August 10, 2026 16:09
@github-actions

github-actions Bot commented Aug 10, 2026

Copy link
Copy Markdown

🧪 Code Coverage (vs main)

⬇️ Download Full Report

Base PR Delta
src/a2a/server/events/event_queue_v2.py 91.79% 91.28% 🔴 -0.51%
src/a2a/utils/telemetry.py 91.47% 90.70% 🔴 -0.78%
Total 93.00% 92.98% 🔴 -0.02%

Generated by coverage-comment.yml

@mykytanetipa mykytanetipa left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The push notifications configs per task cap is a reasonable idea, but it's a public-facing behavioral change, so it should be reviewed and accepted by the A2A spec maintainers first. Please open a spec proposal PR at https://github.com/a2aproject/A2A before implementing it in the SDK.

"""


class InMemoryPushNotificationConfigStore(PushNotificationConfigStore):

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The push notification cap is only present in InMemoryPushNotificationConfigStore

DatabasePushNotificationConfigStore and any custom PushNotificationConfigStore subclasses have no cap. I think that limit should belong at the handler layer, not in one store implementation.

logger = logging.getLogger(__name__)


MAX_PUSH_NOTIFICATION_CONFIGS_PER_TASK = 50

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd avoid setting MAX_PUSH_NOTIFICATION_CONFIGS_PER_TASK just as a global constant. If this change lands it should be configurable, opt-in, with None default and set by some server config

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