What problem does it solve?
This Skill eliminates common production failures in Pear's Java scheduled jobs caused by race conditions, indefinite thread hangs, unmanaged thread pools, and hardcoded configuration values, reducing downtime and debugging effort for engineering teams.
Core Features & Use Cases
- Concurrency Safety: Enforces AtomicBoolean guards to prevent overlapping job executions that cause data corruption.
- Timeout Enforcement: Requires Parallel.getAll() for parallel task execution to avoid hanging threads that consume resources indefinitely.
- Dynamic Configuration & Anti-Pattern Detection: Mandates AppConfig toggles for runtime configuration and flags common mistakes like plain boolean running flags, unshutdown thread pools, and hardcoded values.
- Use Case: When building a new retailer data sync scheduled job, use this Skill to implement safe parallel processing, configurable timeouts, and progress tracking without introducing race conditions or resource leaks.
Quick Start
Use the pear-jobs skill to review your new scheduled job implementation for missing AtomicBoolean guards, timeout handling, and AppConfig usage.