Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def start(self):
"""
Start executor with additional checks.
Checks if previous executor isn't running then start process
(executor) and wait until it's started.
"""
if self.pre_start_check():
# Executor or other process is running with same config.
raise AlreadyRunning(self)
Executor.start(self)
self.wait_for(self.after_start_check)