summaryrefslogtreecommitdiff
path: root/commcrawler
diff options
context:
space:
mode:
Diffstat (limited to 'commcrawler')
-rw-r--r--commcrawler/scrapy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/commcrawler/scrapy.py b/commcrawler/scrapy.py
index f4be032..e20dcdc 100644
--- a/commcrawler/scrapy.py
+++ b/commcrawler/scrapy.py
@@ -127,6 +127,7 @@ class DefaultSpider:
result = models.CrawlResult.objects.select_for_update().get(
pk=self.crawl_result.pk)
result.status = "T"
+ result.duration = (timezone.now() - result.started)
result.save()
raise CloseSpider('timeout')