Skip to content

feat: added jobservice schedule subcommand#795

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

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

Conversation

@NishchayRajput
Copy link
Copy Markdown

@NishchayRajput NishchayRajput commented Apr 3, 2026

Description

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

This PR adds schedule management commands under harbor jobservice schedules to improve Job Service Dashboard parity for CLI users.
It enables listing schedules, checking global scheduler status, and pausing or resuming all schedules from the CLI.

Type of Change

Please select the relevant type.

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

Changes

  • Added schedule command group support: list, status, pause-all, resume-all.
  • Added schedule API handlers and schedule table/status rendering support.
  • Added schedule command docs (CLI docs + man pages) and schedule helper unit tests.

Command and Flag Behavior

Commands added

  • harbor jobservice schedules list
  • harbor jobservice schedules status
  • harbor jobservice schedules pause-all
  • harbor jobservice schedules resume-all

Supported flags by command

  • harbor jobservice schedules list

    • --page
    • --page-size
    • supports global --output-format json|yaml
  • harbor jobservice schedules status

    • no schedule-specific flags
    • supports global --output-format json|yaml
  • harbor jobservice schedules pause-all

    • no schedule-specific flags
  • harbor jobservice schedules resume-all

    • no schedule-specific flags

Default behavior

  • list uses page 1 and page-size 20 when flags are omitted.
  • status reports the global scheduler state for job_type=all.
  • pause-all and resume-all operate directly on the global scheduler and are non-interactive.

Signed-off-by: Nishchay Rajput <nishchayr@iitbhilai.ac.in>
@NishchayRajput NishchayRajput changed the title feat: jobservice schedule feat: added jobservice schedule subcommand Apr 3, 2026
@NucleoFusion
Copy link
Copy Markdown
Contributor

Can you convert this to a draft, since this would cause conflicts with the other PR #793
And we can wait till the other gets merged

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