pynenc.conf.validation_trigger¶
Validation for trigger configuration.
Runs when BaseTrigger.conf is cached for the first time. Raises
TriggerConfigError only when the configuration can prevent trigger processing or
purge trigger monitoring records too aggressively.
Module Contents¶
Functions¶
Raise TriggerConfigError if trigger configuration cannot run. |
API¶
- exception pynenc.conf.validation_trigger.TriggerConfigError[source]¶
Bases:
pynenc.exceptions.ConfigErrorRaised when trigger configuration prevents trigger processing.
Initialization
Initialize self. See help(type(self)) for accurate signature.
- pynenc.conf.validation_trigger.validate_trigger_config(conf: pynenc.conf.config_trigger.ConfigTrigger) None[source]¶
Raise TriggerConfigError if trigger configuration cannot run.
Hard failures:
event_retention_days < 1: auto-purge can remove current event records
Warnings:
scheduler_interval_seconds <= 0: invalid if the scheduler starts using it
event_max_records == 1: composite event-trigger monitoring is fragile
trigger_run_max_records == 1: only one trigger-run record is retained