Job
The bacalhau job command provides a suite of sub-commands to submit, query, and manage jobs within Bacalhau. Users can deploy jobs, obtain job details, track execution logs, and more.
Usage
bacalhau job [command]
Available Commands
-
-
Description: Retrieves detailed information of a job using its ID.
-
Usage:
bacalhau job describe
-
-
-
Description: Lists all executions associated with a job, identified by its ID.
-
Usage:
bacalhau job executions
-
-
get:
-
Description: Get the results of a job, identified by its ID.
-
Usage:
bacalhau job get
-
-
-
Description: Enumerates the historical events related to a job, identified by its ID.
-
Usage:
bacalhau job history
-
-
list:
-
Description: Provides an overview of all submitted jobs.
-
Usage:
bacalhau job list
-
-
logs:
-
Description: Fetches and streams the logs from a currently executing job.
-
Usage:
bacalhau job logs
-
-
rerun:
-
Description: Reruns an existing job, identified by its ID or name. Use
--versionto rerun a specific job version. -
Usage:
bacalhau job rerun <job-id-or-name>
-
-
run:
-
Description: Submits a job for execution using either a JSON or YAML configuration file.
-
Usage:
bacalhau job run
-
-
stop:
-
Description: Halts a previously submitted job.
-
Usage:
bacalhau job stop
-
-
validate:
-
Description: Validates a JSON or YAML job specification without submitting it.
-
Usage:
bacalhau job validate ./job.yaml
-
-
versions:
-
Description: Lists the versions of a job, identified by its ID or name.
-
Usage:
bacalhau job versions <job-id-or-name>
-
For comprehensive details on any of the sub-commands, run:
bacalhau job [command] --help
Flags
-h,--help:- Description: Shows the help information for the
jobcommand.
- Description: Shows the help information for the
--profile string:- Description: Use a specific profile for this command.
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