Skip to content

feat: added jobservice queue subcommand#793

Open
NishchayRajput wants to merge 2 commits intogoharbor:mainfrom
NishchayRajput:feat/jobservice-queue
Open

feat: added jobservice queue subcommand#793
NishchayRajput wants to merge 2 commits intogoharbor:mainfrom
NishchayRajput:feat/jobservice-queue

Conversation

@NishchayRajput
Copy link
Copy Markdown

Description

Briefly describe what this pull request does and why the change is needed.

This PR adds queue management commands under harbor jobservice queues to improve Job Service Dashboard parity for CLI users.
It enables listing queue state and executing queue lifecycle actions (stop/pause/resume) using either interactive or non-interactive flows.

Type of Change

Please select the relevant type.

  • Bug fix
  • New feature
  • Refactor
  • Documentation update
  • Chore / maintenance

Changes

  • Added queue command group support: list, stop, pause, resume.
  • Added queue API handlers and queue table rendering support.
  • Added queue command docs (CLI docs + man pages) and queue helper unit tests.

Command and Flag Behavior

Commands added

  • harbor jobservice queues list
  • harbor jobservice queues stop
  • harbor jobservice queues pause
  • harbor jobservice queues resume

Supported flags by command

  • harbor jobservice queues list

    • no queue-specific flags
    • supports global --output-format json|yaml
  • harbor jobservice queues stop

    • --type <type|all> (repeatable and comma-separated)
    • --interactive / -i
  • harbor jobservice queues pause

    • --type <type|all> (repeatable and comma-separated)
    • --interactive / -i
  • harbor jobservice queues resume

    • --type <type|all> (repeatable and comma-separated)
    • --interactive / -i

Default interactive behavior

  • Interactive UI is the default for stop, pause, and resume when --type is not provided.
  • Non-interactive mode is used automatically when one or more --type values are provided.

Interactive selection behavior

  • resume: only paused queues are shown.
  • pause: only unpaused queues are shown.
  • stop: all available queues are shown.

Type normalization behavior

  • Supports repeated flags: --type A --type B
  • Supports comma-separated values: --type A,B
  • Deduplicates queue types
  • all short-circuits to global action semantics

Signed-off-by: Nishchay Rajput <nishchayr@iitbhilai.ac.in>
@NishchayRajput NishchayRajput marked this pull request as ready for review April 3, 2026 07:06
Signed-off-by: Nishchay Rajput <nishchayr@iitbhilai.ac.in>
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.

[feature]: Implementing Jobservice Dashboard in CLI

2 participants