def IsActive(self):
			cluster_node = None
			main_cluster_node = None
			end_run = False
			try:
				if self.last:
					self.last.state = ScannerQueue.SCANQ_FINISHED
					self.last.save()
					self.last = None
				if self.computername:
					main_cluster_node = ScannerNode.objects.get(hostname="tlsprober-cluster")
					cluster_node = ScannerNode.objects.get(hostname=self.computername)
					cluster_master_configuration = Cluster.ClusterNode.objects.get(hostname = "tlsprober-cluster")
					cluster_configuration = Cluster.ClusterNode.objects.get(hostname = self.computername)
					if (cluster_master_configuration.active_node and cluster_configuration.active_node and 
						Cluster.ClusterRun.objects.filter(enabled=True).count()>0):
						end_run = True
			except:
				pass #ignore errors
			
			if (self.computername and not (main_cluster_node and cluster_node and main_cluster_node.active_node and cluster_node.active_node)) or end_run:
				if self.list_of_items != None:
					for x in self.list_of_items:
						x.state = ScannerQueue.SCANQ_IDLE
						x.save()
				return False
			
			the_run = ScannerRun.objects.get(id=self.run.id)
			if not the_run.enabled:
				return False
			return True
Draw detected bounding boxes.
dataset/ETHPy150Open operasoftware/tlsprober/probedb/scanner/models.py/ScannerQueue.Queue.IsActive--crossover with--dataset/ETHPy150Open rbgirshick/fast-rcnn/tools/demo.py/vis_detections