Skip to content

fix(listen): recover inline/BYOK finalization when the pusher WebSocket closes #9995

Closed

Description

@Git-on-my-level

Failure class

Inline and BYOK finalization sends durable job identity over the live listener → pusher WebSocket (opcode 104). If that origin session closes just after the handoff, pusher cleanup cancels the connection-scoped finalizer task. CancelledError bypasses its retry/dead-letter handling, leaving the claimed job leased until a later session or lease expiry.

Production platform-key traffic is configured for Cloud Tasks, which avoids this path; BYOK continues to use pusher by design, and inline remains the compatibility default.

Reproduction

The hermetic listen/pusher stack can reproduce a clean close immediately after opcode 104: the job is claimed but never completes or requeues within the source session.

Desired durable guard

Choose and implement a source-session-close-safe contract for inline/BYOK finalization (for example, release/requeue the lease or hand off to detached durable ownership). Add a real close-after-104 regression scenario that proves convergence without requiring a later live session.

Refs #9453, #9809, #9985

Activity

  1. added 2 commits that reference this issue on Jul 19, 2026
    c6de414
    4336621
  2. added a commit that references this issue on Jul 20, 2026
    9aa2d10
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions