aai-institute / jobq

https://aai-institute.github.io/jobq/latest
Apache License 2.0
2 stars 1 forks source link

Improve `jobq status` CLI output #94

Closed leonpawelzik closed 2 months ago

leonpawelzik commented 2 months ago

Improve jobq status CLI output

Overview

Enhance the jobq status command to provide a more structured and detailed output, similar to the format of kubectl describe. This will improve readability and make it easier for users to quickly understand the state of their jobs.

Requirements

Proposed Structure


Name:         <job-name>
Namespace:    <namespace>
Priority:     <priority>
Node:         <node-name>
Start Time:   <start-time>
Status:       <current-status>

Labels:
  <key1>=<value1>
  <key2>=<value2>

Annotations:
  <annotation1>=<value1>
  <annotation2>=<value2>

Spec:
  Image:      <container-image>
  Command:    <command>
  Resources:
    Requests:
      cpu:    <cpu-request>
      memory: <memory-request>
    Limits:
      cpu:    <cpu-limit>
      memory: <memory-limit>

Status:
  Phase:      <phase>
  Conditions:
    Type      Status  LastProbeTime   LastTransitionTime    Reason    Message
    ----      ------  --------------  ------------------    ------    -------
    <type>    <status> <last-probe>    <last-transition>     <reason>  <message>

Events:
  Type    Reason    Age   From    Message
  ----    ------    ----  ----    -------
  <type>  <reason>  <age> <from>   <message>