Executions
Description
The bacalhau job executions command retrieves a list of executions for a specific job based on its ID. This can be essential when tracking the various runs and their respective states for a particular job.
Usage
bacalhau job executions [id] [flags]
Flags
--all-versions:- Description: Return results for all job versions. By default, only the latest job version is included.
--versiontakes precedence if both are set.
- Description: Return results for all job versions. By default, only the latest job version is included.
-h,--help:- Description: Display help for the
executionscommand.
- Description: Display help for the
--hide-header:- Description: Do not print the column headers when displaying the results.
--limit uint32:- Description: Restricts the number of results returned.
- Default:
20
--namespace string:- Description: Job namespace. If not provided, the default namespace is used.
--next-token string:- Description: Uses the specified token for pagination. Useful for fetching the next set of results.
--no-style:- Description: Removes all styling from the table output, displaying raw data.
--order-by string:- Description: Orders results based on a specific field. Valid fields are
modified_atandcreated_at.
- Description: Orders results based on a specific field. Valid fields are
--order-reversed:- Description: Reverses the order of the results. Useful in conjunction with
--order-by.
- Description: Reverses the order of the results. Useful in conjunction with
--output format:- Description: Specifies the desired output format for the command. Supported values are
table,csv,json, andyaml. - Default:
table
- Description: Specifies the desired output format for the command. Supported values are
--pretty:- Description: Pretty prints the output. This option is applicable only to
jsonandyamloutput formats.
- Description: Pretty prints the output. This option is applicable only to
-v,--version uint:- Description: The job version to filter by. By default, the latest version is used.
--wide:- Description: Prints full values in the table results without truncating any information.
Global Flags
--api-host string:- Description: The host for the client and server to communicate on (via REST). Ignored if the
BACALHAU_API_HOSTenvironment variable is set. - Default:
0.0.0.0
- Description: The host for the client and server to communicate on (via REST). Ignored if the
--api-port int:- Description: The port for the client and server to communicate on (via REST). Ignored if the
BACALHAU_API_PORTenvironment variable is set. - Default:
1234
- Description: The port for the client and server to communicate on (via REST). Ignored if the
-c,--config string:- Description: Config file(s) or dot-separated path(s) to config values, for example
-c API.Host=10.0.0.1.
- Description: Config file(s) or dot-separated path(s) to config values, for example
--data-dir string:- Description: The filesystem path where Bacalhau initializes or opens its repo.
- Default:
$HOME/.bacalhau
--profile string:- Description: Use a specific profile for this command.
Examples
-
List executions for a specific Job:
bacalhau job executions j-6f2bf0ea-ebcd-4490-899a-9de9d8d95881Expected output:
CREATED MODIFIED ID NODE ID REV. COMPUTE DESIRED COMMENTSTATE STATE16:46:03 16:46:04 e-99362435 QmTSJgdN 6 Completed Stopped16:46:03 16:46:04 e-75dd20bb QmXRdLru 6 Completed Stopped16:46:03 16:46:04 e-03870df5 QmVXwmdZ 6 Completed Stopped -
Order executions by creation time for a specific job:
Execute the command:
bacalhau job executions j-6f2bf0ea-ebcd-4490-899a-9de9d8d95881 --order-by created_atExpected output:
CREATED MODIFIED ID NODE ID REV. COMPUTE DESIRED COMMENTSTATE STATE16:46:03 16:46:04 e-03870df5 QmVXwmdZ 6 Completed Stopped16:46:03 16:46:04 e-75dd20bb QmXRdLru 6 Completed Stopped16:46:03 16:46:04 e-99362435 QmTSJgdN 6 Completed Stopped -
List executions with YAML output:
bacalhau job executions j-6f2bf0ea-ebcd-4490-899a-9de9d8d95881 --output yamlExpected output:
... [The YAML formatted output] ...