def spider_idle(self):
        """Schedules a request if available, otherwise waits."""
        # XXX: Handle a sentinel to close the spider.
        self.schedule_next_requests()
        raise DontCloseSpider
Schedules a request if available, otherwise waits.
stackoverflow/venv/lib/python3.6/site-packages/scrapy_redis/spiders.py