- PENDING: Job created and queued for execution
- STARTED: Job execution has begun
- SUCCESS/FAILURE: Job completed with final status
- RETRY: Job failed but will be retried automatically
- REVOKED: Job was canceled before completion
Examples
Monitoring job progress:Job status should be refreshed periodically using job.refresh() to get
the latest status from the server. The job.wait() method provides a
convenient way to block until completion.
PENDING
Job is queued and waiting to start execution.
This is the initial status when a job is first created. The job has been
submitted to the system but has not yet begun processing. Jobs may remain
in PENDING status if there are resource constraints or if they are waiting
for dependencies.
Characteristics:
- Job is in the execution queue
- No processing has started yet
- May transition to STARTED when resources become available
- Can be canceled while in this state
STARTED
Job execution is currently in progress.
The job has begun processing and is actively running. Progress information
may be available through the job.progress property. Jobs in this state
are consuming system resources and performing the requested operation.
Characteristics:
- Active processing is occurring
- Progress updates may be available
- Cannot be canceled once started
- Will transition to SUCCESS, FAILURE, or RETRY
SUCCESS
Job completed successfully.
The operation has finished successfully and all requested work has been
completed. Results are available and the operation achieved its intended
outcome without errors.
Characteristics:
- Operation completed without errors
- Results are available for use
- Job will not change status again
- Resources have been released
FAILURE
Job failed and will not be retried.
The operation encountered an error and could not be completed successfully.
This is a permanent failure - the job will not be automatically retried.
Error details are typically available in the job.error_message property.
Characteristics:
- Operation failed due to an error
- No automatic retry will occur
- Error details available in error_message
- Manual intervention may be required
- Invalid input data or parameters
- Insufficient permissions
- System resource exhaustion
- Data validation failures
RETRY
Job failed but will be automatically retried.
The operation encountered a temporary error but the system will automatically
attempt to retry the job. This typically occurs for transient issues like
network timeouts or temporary resource unavailability.
Characteristics:
- Temporary failure occurred
- System will automatically retry
- May transition back to PENDING or STARTED
- Retry attempts are limited
- Network connectivity issues
- Temporary resource constraints
- Transient system errors
- Database connection timeouts
REVOKED
Job was canceled or revoked before completion.
The job was explicitly canceled by the user or system before it could
complete. This may occur due to user cancellation, system shutdown, or
administrative intervention.
Characteristics:
- Job was canceled before completion
- No results are available
- Resources have been cleaned up
- Operation did not complete
- User-initiated cancellation
- System maintenance or shutdown
- Administrative intervention
- Timeout or resource limits exceeded