[−][src]Crate background_jobs_core
Background Jobs Core
basic types and traits for implementing a background jobs processor
This crate shouldn't be depended on directly, except in the case of implementing a custom jobs
processor. For a default solution based on Actix and Sled, look at the background-jobs
crate.
Modules
memory_storage | A default, in-memory implementation of a storage mechanism |
Structs
JobInfo | Metadata pertaining to a job that exists within the background_jobs system |
JobStat | A time-based overview of job completion and failures |
NewJobInfo | Information about a newly created job |
ProcessorMap | A type for storing the relationships between processor names and the processor itself |
ReturnJobInfo | Information about the sate of an attempted job |
Stats | Statistics about the jobs processor |
Enums
Backoff | Different styles for retrying jobs |
JobError | The error type returned by a |
JobResult | Indicate the state of a job after an attempted run |
JobStatus | Set the status of a job when storing it |
MaxRetries | How many times a job should be retried before giving up |
ShouldStop | A type that represents whether a job should be requeued |
Traits
Job | The Job trait defines parameters pertaining to an instance of background job |
Processor | The Processor trait |
Storage | Define a storage backend for jobs |