Skip to content

Report terminal program status (OSC 7501) for queue:consume #354

Open

Description

@samdark

Long-running queue operations keep a terminal occupied without useful visible output: a slow handler holds the console for a long time after the last printed line, and the continuous listening modes of queue:consume run indefinitely. Program status (OSC 7501, see also this article) would let the terminal itself show what is happening and when a human is needed.

Note: this was written against the pre-353 command set. PR 353 replaced queue:run, queue:listen and queue:listen-all with the single queue:consume command, so the scope below uses the current names.

Operations in scope and proposed status (current queue:consume):

  • queue:consume (listening mode) — persistent consumer for one queue. working while listening; done when the loop stops (signal); error when consumption fails.
  • queue:consume --once — one pass over the selected (or all configured) queues. working for the pass and per-queue processing; done with the real processed counts; no invented total while producers can still add work.
  • queue:consume --all — continuous polling of all selected queues. working while waiting for or processing jobs; no global completion; an empty queue is not blocked (no human action is required).
  • The queue-db, queue-amqp and queue-redis adapters should not emit duplicate terminal status: one emitter inside queue is enough.

Constraints:

  • User-controlled with an opt-out; suppressed when the output stream is not an interactive TTY (redirected), in quiet mode, or when decoration is disabled — same policy as the Composer CLI (docs).
  • Single-line messages, no secrets, bounded task records; blocked only while a real human action is awaited (none of these modes currently wait for input); completion/error must follow the actual outcome, not just an exit code.

Activity

  1. changed the title [-]Report terminal program status (OSC 7501) for queue:run, queue:listen and queue:listen-all[/-] [+]Report terminal program status (OSC 7501) for queue:consume[/+] on Nov 10, 2026
  2. self-assigned this
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions