Represents a hook in the system. A hook is an action triggered by an event, defined by a trigger and an action to be executed.
Creates an instance of the Hook class.
Hook
The trigger event for the hook.
The action to be executed when the hook is triggered.
The maximum number of retries for the action if it fails. Defaults to 3.
The maximum number of retries for the action if it fails.
The trigger event that activates the hook (e.g., ON_FAILURE, ON_COMPLETION).
Represents a hook in the system. A hook is an action triggered by an event, defined by a trigger and an action to be executed.