https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43145 Bug ID: 43145 Summary: Add Koha::Health::BackgroundJobs health check Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: tomascohen@gmail.com QA Contact: testopia@bugs.koha-community.org Depends on: 43137 Target Milestone: --- Follow-up to Bug 43137 (system health monitoring framework). Adds a Koha::Health::BackgroundJobs class that checks: - Workers not picking up jobs (oldest pending job age exceeds threshold) - Failed jobs accumulating without being addressed Alert codes: - jobs_stuck: { code => 'jobs_stuck', params => { count => N, minutes => M } } - jobs_failed: { code => 'jobs_failed', params => { count => N } } Permission: { parameters => 'manage_background_jobs' } The check queries the background_jobs table for: - Jobs with status 'new' where enqueued_on is older than a configurable threshold - Jobs with status 'failed' that have not been acknowledged/cleared Should include full test coverage (mocked, not DB-dependent). Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43137 [Bug 43137] Add system health monitoring with status indicators in the staff interface -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.