Skip to content

feature: CLI queue support#494

Merged
JannikSt merged 3 commits intomainfrom
feature/cli-queue-support
Apr 6, 2026
Merged

feature: CLI queue support#494
JannikSt merged 3 commits intomainfrom
feature/cli-queue-support

Conversation

@JannikSt
Copy link
Copy Markdown
Member

@JannikSt JannikSt commented Apr 6, 2026

Add queue awareness to the CLI for the new run queue system.

  • Show queue position when a run is created as QUEUED
  • Show queue position in rl get output
  • Add QUEUED status color
  • Handle 404 gracefully in rl logs for queued/pending runs
  • Wait and retry in follow mode when run is queued

Note

Low Risk
Low risk: CLI-only changes to display queued runs and handle missing logs more gracefully; no auth, data writes, or protocol changes beyond accepting an extra API field.

Overview
Adds queue awareness to prime rl by accepting runsAhead on RLRun and treating QUEUED as a first-class status.

When creating or fetching a run, the CLI now shows queued state with an estimated queue position and avoids suggesting prime rl logs until the run starts. The rl logs command now handles queued/pending runs that return 404 by either exiting with a friendly message (non-follow) or waiting/retrying in follow mode, and QUEUED is included in the status color map.

Reviewed by Cursor Bugbot for commit 9bf91d2. Bugbot is set up for automated code reviews on this repo. Configure here.

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 170df49. Configure here.

Comment thread packages/prime/src/prime_cli/commands/rl.py
@JannikSt JannikSt merged commit a7474c6 into main Apr 6, 2026
12 checks passed
@JannikSt JannikSt deleted the feature/cli-queue-support branch April 6, 2026 13:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant