From 92e6afa5c6221846d6eb0e51a384c74f52e32e1c Mon Sep 17 00:00:00 2001 From: Simon Oliver Tveit Date: Thu, 16 May 2024 14:16:36 +0200 Subject: [PATCH] fixup! Let each separate task save itself to the results --- python/nav/asyncdns.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/nav/asyncdns.py b/python/nav/asyncdns.py index 801868e145..796b7546cb 100644 --- a/python/nav/asyncdns.py +++ b/python/nav/asyncdns.py @@ -88,9 +88,8 @@ def lookup_names(): for name in names: for deferred in self.lookup(name): deferred.addCallback(self._extract_records, name) - deferred.addCallback(self._save_result) deferred.addErrback(self._errback, name) - deferred.addErrback(self._save_result) + deferred.addCallback(self._save_result) yield deferred # Limits the number of parallel requests to BATCH_SIZE