All checks were successful
CI/CD Pipeline - Apartment API / Scan Dependencies (pull_request) Successful in 13s
CI/CD Pipeline - Apartment API / Send Webhook Notification (pull_request) Successful in 2s
CI/CD Pipeline - Apartment API / Lint & Test (pull_request) Successful in 41s
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
Implement a status endpoint that returns the current state of the scraper system. The response includes mutex state (idle/running with job ID), last run history from scraper_runs collection (status, timing, unit/error counts), next scheduled run timestamp, and cron schedule expression. Protected by requireAuth + requireAdmin middleware. Returns 503 on database errors for graceful degradation. Includes 13 tests covering auth, response structure, edge cases, and error handling.