code: def scheduled(wait=False):
      
      manager.run_scheduled()
      while wait:
          # Loop and try to run scheduled crawlers at short intervals
          manager.run_scheduled()
          time.sleep(settings.SCHEDULER_INTERVAL)
docs: Run crawlers that are due.