Skip to content

feat: notify subscribers concurrently #34

Closed

Description

@uniqueg

Why?

Pubgrade notifies subscribers one after the other, without timeouts. One slow subscriber delays all others, an unreachable one stops the rest of the loop, and the caller can't see who was reached. For orchestrated upgrades, delivery to several sites should start at the same time, and the result per site must be visible.

How?

  • Notify subscribers concurrently, with a timeout per call (configurable).
  • One failure doesn't stop the others. Responses other than 2xx count as failures.
  • Store the result per subscriber on the build, and return it from GET /repositories/{id}/builds/{build_id}: subscription, result, HTTP status, time. No callback URLs and no tokens, as that endpoint is public.
  • Update the README and API spec.

Acceptance criteria

  • A subscriber that hangs or fails doesn't delay or stop delivery to others beyond the timeout.
  • The build shows one result per subscriber.
  • Unit tests and docs cover this.

Dependencies: #32.

Activity

  1. added
    priority: high
    status: blocked
    type: feature
    workload: hours
    ecp-wp4: M4.3
    on Nov 5, 2026
  2. added
    status: in progress
    and removed
    status: blocked
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ecp-wp4: M4.3priority: highstatus: in progresstype: featureworkload: hours

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions