Every line of 'threading timer python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
72 def timer(self): 73 while self.loop(): 74 if self.cron.check_trigger(time.localtime(time.time())[:5]): 75 self.logging.info("Cron executed.") 76 for chunk in [self.kwargs_raw["payload"], None]: 77 for payload in self.decode(chunk): 78 event = self.generateEvent( 79 payload, 80 self.kwargs.destination 81 ) 82 self.submit( 83 event, 84 "outbox" 85 ) 86 87 sleep(60)
Secure your code as it's written. Use Snyk Code to scan source code in minutes – no build needed – and fix issues immediately. Enable Snyk Code