code: async def periodic_task(self, actor, **kw):
          
          while True:
              interval = 0
              #
              if actor.started():
                  # managed actors job
                  self.manage_actors(actor)
                  for m in list(self.monitors.values()):
                      _remove_monitor(m)
  
                  interval = MONITOR_TASK_PERIOD
                  #
                  actor.event('periodic_task').fire()
  
              if actor.cfg.reload and autoreload.check_changes():
                  # reload changes
                  actor.stop(exit_code=autoreload.EXIT_CODE)
  
              if not actor.stopped():
                  try:
                      await asyncio.sleep(interval)
                  except asyncio.CancelledError:
                      break
docs: Override the :meth:`.Concurrency.periodic_task` to implement
          the :class:`.Arbiter` :ref:`periodic task <actor-periodic-task>`.