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: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
        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.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to