Trilium Frontend API
    Preparing search index...

    Interface WatchdogConfig

    The watchdog plugin configuration.

    interface WatchdogConfig {
        crashNumberLimit?: number;
        minimumNonErrorTimePeriod?: number;
        saveInterval?: number;
    }
    Index

    Properties

    crashNumberLimit?: number

    A threshold specifying the number of watched item crashes when the watchdog stops restarting the item in case of errors. After this limit is reached and the time between the last errors is shorter than minimumNonErrorTimePeriod, the watchdog changes its state to crashedPermanently and it stops restarting the item. This prevents an infinite restart loop.

    3
    
    minimumNonErrorTimePeriod?: number

    An average number of milliseconds between the last watched item errors (defaults to 5000). When the period of time between errors is lower than that and the crashNumberLimit is also reached, the watchdog changes its state to crashedPermanently and it stops restarting the item. This prevents an infinite restart loop.

    5000
    
    saveInterval?: number

    A minimum number of milliseconds between saving the editor data internally (defaults to 5000). Note that for large documents this might impact the editor performance.

    5000