listener enable and listener disable switch a declared listener on or
off for one session. The definition and every other session are untouched.
Synopsis
What it does
- Resolves the blob and revision, then the session. The session may have any status.
- Sends
set_session_listenerwith the listener and the new state. - Prints the listener’s effective state and whether the session overrides its definition:
(as the definition says). It raises no event. A batch that comes due while the listener is off in the
session is dropped with no outcome, as described under
The switch.
Under --json the payload is {session_id, listener}, the listener entry as the platform returns it, alongside the
envelope’s schema_version.
The write is retried only when it provably never ran, as every write in this CLI is. Rerunning the command is safe: it
sets the same state again.
Errors
Every code above, with its remediation, is in Error codes.
See also
blobhub workflow listeners— read the switch and the outcomes.- Listeners — what the switch does on the platform.

