background-job

Automate recurring background jobs with paging and multi-tenant awareness.

7|1|Updated Jun 17, 2021
One-click install
npx skills add https://github.com/duc01226/EasyPlatform --skill background-job
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: background-job
Source: https://github.com/duc01226/EasyPlatform/tree/main/.claude/skills/backend-background-job
Command: npx skills add https://github.com/duc01226/EasyPlatform --skill background-job

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps design recurring, batch, or scrolling background jobs with paging and multi-tenant awareness.

Core Features & Use Cases

  • SimplePaged, BatchScrolling patterns
  • Multi-tenant aware processing
  • Scheduling and monitoring patterns

Quick Start

Create a sample background job skeleton for a daily data sync task.

Frequently Asked Questions about background-job

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I design scalable background jobs for batch processing?

Scalable background jobs use paging strategies like SimplePaged and BatchScrolling patterns to process large datasets efficiently. This Skill automates job orchestration with explicit paging, handling recurring tasks, data synchronization, and maintenance jobs while managing page sizing and multi-tenant contexts to avoid memory overload.

What's the best way to handle multi-tenant data synchronization in scheduled jobs?

Multi-tenant aware background jobs isolate processing per tenant using repository queries and executor classes. This approach ensures each tenant's data syncs independently on a schedule, preventing cross-tenant data leakage and allowing independent job execution patterns for each tenant.

How do I implement paging strategies for recurring batch data processing?

Batch data processing with paging uses scrolling and batch-scrolling patterns to iterate through large datasets in manageable chunks. The Skill provides job type decision trees and page sizing logic, letting you choose between simple pagination or continuous scrolling based on your data volume and performance needs.

Can I use background jobs for both cron-based scheduling and one-time batch tasks?

Yes. This Skill handles both scheduled recurring jobs (cron-based) and one-time batch processing through the same job orchestration framework. The flexible design supports data synchronization, maintenance tasks, and recurring reports with consistent paging and multi-tenant handling across both patterns.

What monitoring and scheduling patterns work with background job design?

Background job design includes built-in scheduling and monitoring patterns that track job execution, handle failures, and manage retry logic. These patterns integrate with your job executor classes, providing visibility into batch processing progress and multi-tenant job status across recurring tasks.