def buildrunning(): if keepalive: threading.Timer(10.0, buildrunning).start() if not error: checkJobsBuilding() # Initiate the threads