Skip to main content
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

  1. Resolves the blob and revision, then the session. The session may have any status.
  2. Sends set_session_listener with the listener and the new state.
  3. Prints the listener’s effective state and whether the session overrides its definition:
The switch is an override, not a rewrite. Setting a value equal to the definition’s own clears the override, and the line then reads (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