module documentation
Job related commands
| Function | |
Archive jobs. |
| Function | |
Archive jobs based on age. |
| Function | |
Cancel not-yet-started jobs. |
| Function | |
Change priority of jobs. |
| Function | |
List job fields. |
| Function | |
List the jobs |
| Function | |
Undocumented |
| Function | |
Show detailed information about jobs. |
| Function | |
Wait for a job to finish, not producing any output. |
| Function | |
Follow a job and print its output as it arrives. |
| Variable | aliases |
Undocumented |
| Variable | commands |
Undocumented |
| Function | _ |
Calculates the delta between two timestamps. |
| Function | _ |
Formats a job status. |
| Function | _ |
Formats a job's summary. |
| Function | _ |
Adds the job timestamp to the given container. |
| Function | _ |
Adds the opcode timestamp to the given container. |
| Function | _ |
Applies a function to multiple jobs. |
| Function | _ |
Parses a list of string job IDs into integers. |
| Constant | _ARCHIVED |
Undocumented |
| Constant | _ERROR |
Undocumented |
| Constant | _FINISHED |
Undocumented |
| Constant | _JOB |
Undocumented |
| Constant | _KILL |
Undocumented |
| Constant | _LIST |
Undocumented |
| Constant | _PENDING |
Undocumented |
| Constant | _QUEUED |
Undocumented |
| Constant | _RUNNING |
Undocumented |
| Constant | _USER |
Undocumented |
| Constant | _WAITING |
Undocumented |
| Constant | _YES |
Undocumented |
Archive jobs.
| Parameters | |
| opts | the command line options selected by the user |
| args:list | should contain the job IDs to be archived |
| Returns | |
| int | the desired exit code |
Archive jobs based on age.
This will archive jobs based on their age, or all jobs if a 'all' is passed.
| Parameters | |
| opts | the command line options selected by the user |
| args:list | should contain only one element, the age as a time spec that can be parsed by ganeti.cli.ParseTimespec or the keyword all, which will cause all jobs to be archived |
| Returns | |
| int | the desired exit code |
Cancel not-yet-started jobs.
| Parameters | |
| opts | the command line options selected by the user |
| args:list | should contain the job IDs to be cancelled |
| cl | Undocumented |
| _stdout | Undocumented |
| _ask | Undocumented |
| Returns | |
| int | the desired exit code |
List job fields.
| Parameters | |
| opts | the command line options selected by the user |
| args:list | fields to list, or empty for all |
| Returns | |
| int | the desired exit code |
List the jobs
| Parameters | |
| opts | the command line options selected by the user |
| args:list | should be an empty list |
| Returns | |
| int | the desired exit code |
Show detailed information about jobs.
| Parameters | |
| opts | the command line options selected by the user |
| args:list | should contain the job IDs to be queried |
| Returns | |
| int | the desired exit code |
Wait for a job to finish, not producing any output.
| Parameters | |
| opts | the command line options selected by the user |
| args:list | Contains the job ID |
| Returns | |
| int | the desired exit code |
Follow a job and print its output as it arrives.
| Parameters | |
| opts | the command line options selected by the user |
| args:list | Contains the job ID |
| Returns | |
| int | the desired exit code |
Adds the job timestamp to the given container.
| Parameters | |
| name | Undocumented |
| ts | Undocumented |
| container | Undocumented |
| prior | The timestamp used to calculate the amount of time that passed since the given timestamp. |
Applies a function to multiple jobs.
| Parameters | |
| opts | Command line options |
| args:list | Job IDs |
| cl | Undocumented |
| stdout | Undocumented |
| ask | Undocumented |
| question | Undocumented |
| action | Undocumented |
| Returns | |
| int | Exit code |
Parses a list of string job IDs into integers.
| Parameters | |
| args | list of strings |
| Returns | |
| list of integers | |
| Raises | |
OpPrereqError | in case of invalid values |
_ARCHIVED_OPT =
¶
Undocumented
| Value |
|
_ERROR_OPT =
¶
Undocumented
| Value |
|
_FINISHED_OPT =
¶
Undocumented
| Value |
|
_JOB_LIST_FORMAT =
¶
Undocumented
| Value |
|
_KILL_OPT =
¶
Undocumented
| Value |
|
_PENDING_OPT =
¶
Undocumented
| Value |
|
_QUEUED_OPT =
¶
Undocumented
| Value |
|
_RUNNING_OPT =
¶
Undocumented
| Value |
|
_USER_JOB_STATUS =
¶
Undocumented
| Value |
|
_WAITING_OPT =
¶
Undocumented
| Value |
|
_YES_DOIT_OPT =
¶
Undocumented
| Value |
|