def METHOD_NAME(environment, context):
    notify_slack_deploy_end(environment, context, is_success=False)
    send_email(
        environment,
        subject=f"{context.service_name} deploy to {environment.name} failed",
    )