List Jobs
Retrieves a paginated list of jobs from the metadata database.Query Parameters
Maximum number of jobs to return (default: 50, max: 1000)
ID of the last job from the previous page for cursor-based pagination
Status filter:
active(default): Non-terminal jobs onlyall: All jobs- Comma-separated values: e.g.,
scheduled,running
Response
List of jobs
Cursor for the next page (null if no more results)
Example Request
Example Response
Get Job Details
Retrieves detailed information for a specific job by its ID.Path Parameters
The unique identifier of the job to retrieve
Response
Unique job identifier
Job creation timestamp (ISO 8601 / RFC 3339)
Job last update timestamp (ISO 8601 / RFC 3339)
Worker node ID this job is scheduled for
Current job status
Job descriptor with job-specific parameters
Example Request
Response Codes
- 200 OK - Job information retrieved successfully
- 400 Bad Request - Invalid job ID format
- 404 Not Found - Job not found
- 500 Internal Server Error - Database error
Get Job Progress
Retrieves progress information for all tables written by a specific job, including current block numbers, file counts, and size statistics.Path Parameters
The unique identifier of the job
Response
Job ID
Current job status
Progress for each table written by this job, keyed by table name
Example Request
Example Response
Stop Job
Stops a running job gracefully. This is an idempotent operation - stopping an already stopped job returns success.Path Parameters
The unique identifier of the job to stop
Response Codes
- 200 OK - Job stop request processed successfully
- 400 Bad Request - Invalid job ID format
- 404 Not Found - Job not found
- 500 Internal Server Error - Database error
State Transitions
Valid stop transitions:- Scheduled → StopRequested (200 OK)
- Running → StopRequested (200 OK)
- Stopped → no change (200 OK)
- Completed → no change (200 OK)
- Failed → no change (200 OK)
Example Request
Delete Job
Deletes a job by its ID if it’s in a terminal state (Completed, Stopped, or Failed). This is a safe, idempotent operation.Path Parameters
The unique identifier of the job to delete
Response Codes
- 204 No Content - Job deleted successfully or doesn’t exist
- 400 Bad Request - Invalid job ID format
- 409 Conflict - Job exists but is not in a terminal state
- 500 Internal Server Error - Database error
Terminal States
Jobs can only be deleted when in these states:- Completed - Safe to delete
- Stopped - Safe to delete
- Failed - Safe to delete
- Scheduled - Job is waiting to run
- Running - Job is actively executing
- StopRequested - Job is being stopped
- Stopping - Job is in process of stopping
Example Request
Bulk Delete Jobs
Deletes multiple jobs based on status filter. Only jobs in terminal states are deleted.Query Parameters
Status filter for jobs to delete:
terminal: All terminal state jobscompleted: All completed jobsstopped: All stopped jobserror: All failed jobs
Response Codes
- 204 No Content - Operation completed successfully
- 400 Bad Request - Invalid or missing status parameter
- 500 Internal Server Error - Database error
Example Request
Non-terminal jobs are completely protected from deletion. The database ensures atomic bulk deletion.