code: def stopService(self):
          
          super(_SiteScheduler, self).stopService()
          if self.timer is not None:
              self.timer.cancel()
              self.timer = None
docs: Stop calling persistent timed events.