How to use the skitai.lifetime.shutdown function in skitai

To help you get started, we’ve selected a few skitai examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hansroh / aquests / aquests / athreads / View on Github external
def run (self):
		while 1:		
			job = self.queue.get ()		
			if job is None: break			
			with self.lock:
				self.idle = 0
				self.command = str (job)
			start_time = time.time()			
				job ()
			except MemoryError:
				self.logger.trace ("thread #%d" %				
				lifetime.shutdown (1, 1.0)				
				self.logger.trace ("thread #%d" %
			exc_time = time.time() - start_time
			with self.lock:
				self.exec_time = exc_time
				self.idle = 1				
			del job


Skitai App Engine

Latest version published 1 month ago

Package Health Score

55 / 100
Full package analysis

Similar packages