def __del__(self):
			try:
				if self.last:
					self.last.state = ScannerQueue.SCANQ_IDLE
					self.last.save()
				if self.list_of_items != None:
					for x in self.list_of_items:
						x.state = ScannerQueue.SCANQ_IDLE
						x.save()
			except:
				pass #ignore errors
Release grabbed scan task items if the object is destroyed
dataset/ETHPy150Open operasoftware/tlsprober/probedb/scanner/models.py/ScannerQueue.Queue.__del__