aj
Aj is a simple, customize-able, and feature-rich background job processing library for Rust, backed by Actix (Actor Model).
Usage
use Duration;
use ;
use job;
async
async
Features
Job Types:
- Instant Jobs
- Scheduled Jobs,
- Cron Jobs
Manage Job:
- Update Jobs
- Cancel Jobs
- Get Job Information
Retry
- Manual Retry
- Maximum Retries
- Retry Strategy:
- Interval Strategy
- Exponential Strategy
- Custom Strategy: Control when the job retries by adjusting the
should_retrylogic.
Backend (Broker + Storage)
- Backend Trait: AJ can work with any database or storage that implements the
Backendtrait. In memory Example - Native Support:
- In-memory
- Redis
Processing Speed Customization
- Job Scan Period (tick)
- Number of Jobs can run at same time
DAG
- DAG (Directed Acyclic Graph)
Distributed
- Distributed Mode
Dashboard & Other
- Monitorting
- APIs