Listing Jobs
This guide shows you how to view and filter the jobs in your Bacalhau environment. Being able to list jobs is essential for monitoring your workloads and finding specific jobs to inspect further.
What You'll Learn
How to list all your jobs
How to filter jobs by various criteria
How to customize the output format
Basic Job Listing
To see your recent jobs, use:
By default, this shows your 10 most recent jobs with basic information.
Sample Output
The output columns show:
CREATED: When the job was created (time)
ID: The job's unique identifier
JOB: The job engine type (usually docker)
TYPE: The job type (batch, service, etc.)
STATE: Current job state (Completed, Running, Pending, Failed, etc.)
Filtering Your Job List
You can refine your job list using various flags:
Limit the Number of Results
Filter by Labels
Labels help organize and categorize your jobs:
More complex label filtering:
Change Result Order
Order by creation time or job ID:
Reverse the order (newest last):
Pagination
When you have many jobs, the output will include a pagination token:
Customizing Output Format
By default, results appear in a table format. You can choose other formats:
JSON Output
For more readable JSON:
YAML Output
CSV Output
Useful for importing into spreadsheets:
Table Formatting Options
Additional options for table output:
Last updated
Was this helpful?