docs: def register_periodic_tasks(self, tasks: Iterable[Task]):
          """Register tasks that need to be scheduled periodically."""
          for task in tasks:
              self._scheduler.enter(
                  int(task.periodicity.total_seconds()),
                  0,
                  self._schedule_periodic_task,
                  argument=(task,)
              )