Notifier factory
Module for notifier factory.
NotifierFactory
¶
Bases: ABC
Class for notification factory.
Source code in mkdocs/lakehouse_engine/packages/terminators/notifier_factory.py
generate_failure_notification(spec, exception)
staticmethod
¶
Check if it is necessary to send a failure notification and generate it.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spec |
list
|
List of termination specs |
required |
exception |
Exception
|
Exception that caused the failure. |
required |
Source code in mkdocs/lakehouse_engine/packages/terminators/notifier_factory.py
get_notifier(spec)
classmethod
¶
Get a notifier according to the terminator specs using a factory.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
spec |
TerminatorSpec
|
terminator specification. |
required |
Returns:
Name | Type | Description |
---|---|---|
Notifier |
Notifier
|
notifier that will handle notifications. |