docs: def _handle_tag_master_connected(self, tag, data):
          '''
          Handle a master_connected event
          '''
          # handle this event only once. otherwise it will pollute the log
          # also if master type is failover all the reconnection work is done
          # by `disconnected` event handler and this event must never happen,
          # anyway check it to be sure
          if not self.connected and self.opts['master_type'] != 'failover':
              log.info('Connection to master %s re-established', self.opts['master'])
              self.connected = True
              # modify the __master_alive job to only fire,
              # if the connection is lost again
              if self.opts['transport'] != 'tcp':
                  if self.opts['master_alive_interval'] > 0:
                      schedule = {
                         'function': 'status.master',
                         'seconds': self.opts['master_alive_interval'],
                         'jid_include': True,
                         'maxrunning': 1,
                         'return_job': False,
                         'kwargs': {'master': self.opts['master'],
                                     'connected': True}
                      }
  
                      self.schedule.modify_job(name=master_event(type='alive', master=self.opts['master']),
                                               schedule=schedule)
                  else:
                      self.schedule.delete_job(name=master_event(type='alive', master=self.opts['master']), persist=True)