code: def stop_all_periodic_tasks(self, remove_tasks=True):
          
          for task in self._periodic_tasks:
              task.stop(remove_task=remove_tasks)
docs: Stop sending any messages that were started using bus.send_periodic
  
          :param bool remove_tasks:
              Stop tracking the stopped tasks.