b0163d94fb702436e896343358e83693a4430a76
All checks were successful
CI/CD Pipeline - Apartment API / Send Webhook Notification (pull_request) Successful in 2s
CI/CD Pipeline - Apartment API / Build & Push Image (pull_request) Has been skipped
CI/CD Pipeline - Apartment API / Deploy to Production (pull_request) Has been skipped
CI/CD Pipeline - Apartment API / Scan Dependencies (pull_request) Successful in 13s
CI/CD Pipeline - Apartment API / Lint & Test (pull_request) Successful in 38s
Implement initializeScheduler() and stopScheduler() functions for the scraper cron job module. Key features: - Config-driven enable/disable via SCRAPER_ENABLED environment variable - Cron expression validation with fallback to default schedule (0 6 * * *) - Minimum interval enforcement (1-hour floor) to prevent excessive runs - Timezone support via SCRAPER_TIMEZONE configuration - Mutex lock integration to prevent concurrent scraper executions - Automatic lock release in finally block for error resilience - getScheduleExpression() and getNextScheduledRun() status helpers Add comprehensive test suite with 42 tests covering mutex locking, scheduler lifecycle, cron validation, minimum interval enforcement, concurrent execution prevention, and error handling.
Description
No description provided
Languages
JavaScript
97.8%
HTML
2.1%