# -*- coding: utf-8 -*-
{
    'name': 'Ops Cockpit — Cron Health Monitor',
    'version': '19.0.1.0.0',
    'summary': 'Record every scheduled-action run; surface failures, overruns and health.',
    'description': """
Ops Cockpit - Cron Health Monitor
========================================

Silent ir.cron failures are a production plague: a job raises, its transaction
rolls back, and nobody knows until something downstream breaks. This module
records every scheduled-action run and surfaces health so you see problems
immediately.

- Logs every run (start, end, duration, outcome, traceback, scheduled vs manual).
- Failed-run rows are written on a separate cursor that commits independently, so
  the runs you most want to see survive the job's rollback.
- A watchdog flags runs that are still 'running' past a threshold as 'stale',
  catching worker crashes and overlaps.
- Per-cron health roll-up (good / warning / critical) plus duration and failure
  trends on a dashboard.
- Throttled alerts on failure or overrun (via the Ops Cockpit alert engine).
- Auto-vacuum retention keeps the log table from growing without bound.

Admin-only. Community-only dependencies, so it installs on Community and Enterprise.
""",
    'author': 'Do Incredible',
    'website': 'http://doincredible.com',
    'support': 'info@doincredible.com',
    'category': 'Technical',
    'license': 'OPL-1',
    'depends': ['base', 'mail', 'do_ops_alert_base'],
    'data': [
        'security/ir.model.access.csv',
        'data/ir_cron_data.xml',
        'views/do_cron_health_log_views.xml',
        'views/ir_cron_views.xml',
        'views/res_config_settings_views.xml',
        'views/menus.xml',
    ],
    'demo': [
        'demo/demo.xml',
    ],
    'images': ['static/description/banner.png'],
    'installable': True,
    'application': True,
    'auto_install': False,
}
