periodic-workers

Community

Effortlessly manage recurring background jobs with precision.

AuthorSparkymod
Version1.0.0
Installs0

System Documentation

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.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: periodic-workers
Download link: https://github.com/Sparkymod/Template/archive/main.zip#periodic-workers

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 620,000+ vetted skills library on demand.