-spec on_kick_decided(fun((cluster_id(), Target,
kick_intent()) -> _),
classy_hook:conf()) -> classy_hook:hook() when Target ::
site().
Register a hook that is executed after classy:pre_kick/2 hooks allow the kick to proceed,
but before the membership change is applied and before the site left the cluster.
This hook is executed only on the node that initiates the kick procedure. It can be used to trigger some side effects while the site is still part of the cluster.
WARNING: theoretically, kick procedure can be aborted after this hook fires, or in the middle of its execution. In this case kick procedure won’t be retried. Then side effects of this hook will be observed, but the site will stay in the cluster. As such, it’s not recommended to perform any destructive actions here.
Normally, such actions should be performed in classy:on_membership_change/2.