What problem does it solve?
This Skill streamlines the process of adding recurring background jobs (like cleanup, retention, sync, notifications) to an API host, providing a robust solution to prevent common pitfalls associated with background job management.
Core Features & Use Cases
- Periodic Worker Base: Utilizes
PeriodicWorker for scheduling, error isolation, and graceful shutdown.
- WorkerOptions Configuration: Offers configuration sections for customizing job behavior.
- Registration and Alignment: Simplifies registration in
WorkerRegistrationExtensions and ensures 5-appsettings alignment.
- Domain: Focuses on background processing with an intermediate level of complexity.
- Tags: Includes background-service, hosted-service, periodic, worker, retention.
- Use Case: For instance, setting up a recurring cleanup job to delete old records in a database.
Quick Start
To schedule a cleanup job, configure WorkerOptions and register the ExpiredTokenCleanupWorker.