A job in the sps pipeline moves through several states. Understanding these states is essential for implementing custom runners or monitoring tools:
PendingDownload: Waiting for the download to start.Downloading: Download is currently in progress.Downloaded(PathBuf): Download finished; the artifact is at the provided path.WaitingForDependencies(PathBuf): Artifact is ready, but waiting for required dependencies to succeed.DispatchedToCore(PathBuf): Job has been sent to the core worker pool.Installing(PathBuf): Installation/processing is actively being performed by a worker.Succeeded: The job completed successfully.Failed(Arc<SpsError>): The job failed with the provided error.
pub enum JobProcessingState {
PendingDownload,
Downloading,
Downloaded(PathBuf),
WaitingForDependencies(PathBuf),
DispatchedToCore(PathBuf),
Installing(PathBuf),
Succeeded,
Failed(Arc<SpsError>),
}