UCloud logo UCloud logo UCloud
v2025.1.0
  1. UCloud/Core
  2. 1. Introduction
  3. 2. Projects
  4. 3. Accounting
  5. 4. Orchestration
  6. UCloud/IM for Slurm-based HPC
  7. 5. Installation
  8. 6. Architecture and Networking
  9. 7. User and Project Management
  10. 8. Filesystem Integration
    1. 8.1. Inter-provider file transfers
  11. 9. Slurm Integration
    1. 9.1. Application Management
    2. 9.2. Built-in Applications
  12. 10. Reference
    1. 10.1. Configuration
    2. 10.2. CLI
  13. 11. Appendix
    1. 11.1. Built-in Application Index
  14. UCloud/IM for Kubernetes
  15. 12. Installation
  16. 13. Architecture and Networking
  17. 14. Filesystem Integration
  18. 15. Compute Jobs
    1. 15.1. Public Links
    2. 15.2. Public IPs
    3. 15.3. License Servers
    4. 15.4. SSH Servers
  19. 16. Integrated applications
    1. 16.1. Syncthing
    2. 16.2. Integrated terminal
  20. 17. UCX applications
    1. 17.1. Hello world
    2. 17.2. Data binding
    3. 17.3. UI events
    4. 17.4. Component reference
    5. 17.5. API reference
  21. 18. Reference
    1. 18.1. Configuration
    2. 18.2. CLI
  22. H: Procedures
  23. 19. H: Procedures
  24. 20. H: Introduction
  25. 21. H: Auditing
  26. 22. H: Auditing scenario
  27. 23. H: GitHub actions
  28. 24. H: Deployment
  29. 25. H: 3rd party dependencies (risk assesment)
  1. Links
  2. Source Code
  3. Releases

CLI

The Kubernetes integration includes a small operations CLI for inspecting and controlling active jobs.

Commands are run on the host where the Integration Module is installed:

$ ucloud <command> <subcommand> [options]

The job commands are available under ucloud jobs ....

Notes

  • Commands must be run as root.
  • Query flags use regular expressions unless otherwise noted.
  • The CLI shows active jobs tracked by the Integration Module (non-final jobs).
  • Most commands support --json for machine-readable output.

jobs command

ucloud jobs ls

Lists active jobs.

Optional filters:

  • --state <regex>: Match UCloud job state.
  • --job-id <regex>: Match UCloud job ID.
  • --user <regex>: Match submitting UCloud username.
  • --project <regex>: Match UCloud project ID.
  • --application <regex>: Match application name.
  • --category <regex>: Match machine category.
  • --queue <regex>: Match scheduler queue name.
  • --json: Print JSON output.

Aliases: list.

ucloud jobs get <jobId>

Shows detailed information for one job.

Options:

  • --json: Print JSON output.

Aliases: retrieve, stat, view.

ucloud jobs queue [queue]

Shows queue insight for all queues (or a selected queue), including:

  • queued job count
  • running job count
  • queue/product availability statuses
  • queued jobs per queue (when enabled)

Options:

  • --queue <regex>: Filter queue name.
  • --jobs=<true|false>: Include/exclude queued job listings (default: true).
  • --json: Print JSON output.

If a positional queue argument is given, it is treated as an exact queue-name match.

Alias: queues.

ucloud jobs queue debug [queue]

Shows internal scheduler state intended for debugging and operations.

The output includes, per scheduler queue:

  • queue tick/time
  • all known node entries (including remaining/capacity/limits and unschedulable flag)
  • individual queue entries (priority and factor values)
  • individual replica entries (job, rank, node, dimensions)

Options:

  • --queue <regex>: Filter queue name.
  • --json: Print JSON output.

Alias: ucloud jobs queue state [queue].

ucloud jobs kill <jobId...>

Stops one or more jobs.

Behavior by backend:

  • Virtual machine jobs are suspended.
  • Container jobs are terminated.

You can pass multiple IDs in one command.

Aliases:

  • stop
  • rm, remove, delete, del

ucloud jobs suspend <jobId...>

Suspends one or more virtual machine jobs.

If a listed job is not a virtual machine job, the command reports an error for that job.

ucloud jobs unsuspend <jobId...>

Unsuspends one or more virtual machine jobs.

If a listed job is not a virtual machine job, the command reports an error for that job.

Alias: resume.

Examples

$ ucloud jobs ls
$ ucloud jobs ls --state IN_QUEUE --category gpu-a10
$ ucloud jobs get 1234
$ ucloud jobs queue
$ ucloud jobs queue cpu-standard/general
$ ucloud jobs queue --queue 'gpu.*/.*' --jobs=false
$ ucloud jobs queue debug
$ ucloud jobs queue state gpu-a10/a10
$ ucloud jobs stop 1234 5678
$ ucloud jobs suspend 1234
$ ucloud jobs resume 1234
Previous Configuration
Next H: Procedures