if dqok:
    self.stats.inc_value('scheduler/enqueued/disk', spider=self.spider)
else:
    self._mqpush(request)
self.stats.inc_value('scheduler/enqueued/memory', spider=self.spider)
self.stats.inc_value('scheduler/enqueued', spider=self.spider)
return True
Scrapy - Retrieve spider object in dupefilter