in drainer/k8s_utils.py [0:0]
def abandon_lifecycle_action(asg_client, auto_scaling_group_name, lifecycle_hook_name, instance_id):
"""Completes the lifecycle action with the ABANDON result, which stops any remaining actions,
such as other lifecycle hooks.
"""
asg_client.complete_lifecycle_action(LifecycleHookName=lifecycle_hook_name,
AutoScalingGroupName=auto_scaling_group_name,
LifecycleActionResult='ABANDON',
InstanceId=instance_id)