Notification are not sent for some hosts and their services

Hello, I have configured email, slack and pushover notification. Slack and email notifications are working fine for all hosts and services. but for pushover, some host and their services notifications are not been sent. Is there something wrong with config ?
icinga2 version: 2.12.3

// notification command definition of pushover-service
object NotificationCommand "pushover-service-notification" {
      command = [ "/etc/icinga2/scripts/notify_by_pushover_icinga2.py" ]
       arguments += {
	    "--title" = {
	      value = "$title$"
	    }
	    "--priority" = {
	      value = "$priority$"
	    }
	    "--warningsound" = {
	      value = "$warning_sound$"
	    }
	    "--criticalsound" = {
	      value = "$critical_sound$"
	    }
	    "--oksound" = {
	      value = "$ok_sound$"
	    }
	    "--user" = {
	      required = true
	      value = "$user.vars.pushover.user_key$"
	    }
	    "--token" = {
	      required = true
	      value = "$user.vars.pushover.token$"
	    }
	    "--hostdisplayname" = {
	      value = "$host.display_name$"
	    }
	    "--servicestate" = {
	      value = "$service.state$"
	    }
	    "--servicedisplayname" = {
	      value = "$service.display_name$"
	    }
	    "--output" = {
	      value = "$service.last_check_result.output$"
	    }
	    "--notificationcomment" = {
	      value = "$notification.comment$"
	    }
	    "--notificationauthor" = {
	      value = "$notification.author$"
	    }
      }
      vars += {
		ok_sound = {{ 
				if (get_time_period("workhours").is_inside) {   
					return "$user.vars.pushover.ok_sound$"
				} else {
					if( "$user.vars.pushover.ocd_ok_sound$" ) {
					   return "$user.vars.pushover.ocd_ok_sound$"
					}
				}
				return "$user.vars.pushover.ok_sound$"
		}}
		warning_sound = {{
				if (get_time_period("workhours").is_inside) {   
					return "$user.vars.pushover.warning_sound$"
				} else {
					if( "$user.vars.pushover.ocd_warning_sound$" ) {
					   return "$user.vars.pushover.ocd_warning_sound$"
					}
				}
				return "$user.vars.pushover.warning_sound$"
		}}
	    critical_sound = {{ 
				if (get_time_period("workhours").is_inside) {   
					return "$user.vars.pushover.critical_sound$"
				} else {
					if( "$user.vars.pushover.ocd_critical_sound$" ) {
					   return "$user.vars.pushover.ocd_critical_sound$"
					}
				}
				return "$user.vars.pushover.critical_sound$"
        }}
		priority = {{ 
			if (get_time_period("workhours").is_inside) {	
				return "$user.vars.pushover.priority$"
            } else {
				if( "$user.vars.pushover.ocd_priority$" ) {
                	return "$user.vars.pushover.ocd_priority$"
				}
			}
			return "$user.vars.pushover.priority$"
		}}
		title = {{ 
			if (get_time_period("workhours").is_inside) {	
				return "Icinga2"
            } else {
                return "Icinga2 OCD"
			}
		}}
    }
}

here is notification apply rule for service

apply Notification "pushover-service-icingaadmin" to Service {
      import "service-notification"
	  if (host.vars.notification.period) {
          period = host.vars.notification.period
      }
      if (service.vars.notification.period) {
          period = service.vars.notification.period
      } if notification interval is defined then overwrite
      if (service.vars.notification.interval) {
          interval = service.vars.notification.interval
      } else {
          interval = 0 // disable re-notification
      }
      states = [ Critical, OK ]
      types = [ Problem, Recovery ]
      user_groups = ["icinga2-ocd"]
      command = "pushover-service-notification"
      assign where match("pushover*", service.vars.notification.type, MatchAny)
      ignore where "prod" !in host.vars.customer.role
}

output of icinga2 object list --type Notification --name 'myhostname!nginx_process!pushover-service-icingaadmin'

  % declared in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 51:1-51:60
  * __name = "myhostname!nginx_process!pushover-service-icingaadmin"
  * command = "pushover-service-notification"
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 78:7-78:47
  * command_endpoint = ""
  * host_name = "myhostname"
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 51:1-51:60
  * interval = 0
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 66:11-66:22
  * name = "pushover-service-icingaadmin"
  * package = "_etc"
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 51:1-51:60
  * period = "24x7"
    % = modified in '/etc/icinga2/zones.d/global-templates/templates/notifications.conf', lines 14:7-14:26
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 56:11-56:48
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 59:11-59:51
  * service_name = "nginx_process"
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 51:1-51:60
  * source_location
    * first_column = 1
    * first_line = 51
    * last_column = 60
    * last_line = 51
    * path = "/etc/icinga2/zones.d/global-templates/notifications.conf"
  * states = [ "Critical", "OK" ]
    % = modified in '/etc/icinga2/zones.d/global-templates/templates/notifications.conf', lines 20:11-20:53
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 70:7-70:31
  * templates = [ "pushover-service-icingaadmin", "service-notification", "template-notification" ]
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 51:1-51:60
    % = modified in '/etc/icinga2/zones.d/global-templates/templates/notifications.conf', lines 18:1-18:44
    % = modified in '/etc/icinga2/zones.d/global-templates/templates/notifications.conf', lines 5:1-5:45
  * times = null
  * type = "Notification"
  * types = [ "Problem", "Recovery" ]
    % = modified in '/etc/icinga2/zones.d/global-templates/templates/notifications.conf', lines 6:7-8:61
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 72:7-72:35
  * user_groups = [ "icinga2-ocd" ]
    % = modified in '/etc/icinga2/zones.d/global-templates/templates/notifications.conf', lines 15:7-15:38
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 75:7-75:35
  * users = null
  * vars
    % = modified in '/etc/icinga2/zones.d/global-templates/templates/notifications.conf', lines 9:7-13:7
    * notification_from = "Icinga2 Monitoring on icinga-prod-master1"
    * notification_icingaweb2url = "xxxxx"
    * notification_logtosyslog = false
  * zone = "myzone"
    % = modified in '/etc/icinga2/zones.d/global-templates/notifications.conf', lines 51:1-51:60

found the issue, The script on second master had small error. After fixing script notifications are working fine.