diff --git a/rewrite-python/src/main/java/org/openrewrite/python/PythonParser.java b/rewrite-python/src/main/java/org/openrewrite/python/PythonParser.java index c0bd9754..fe3f6f18 100644 --- a/rewrite-python/src/main/java/org/openrewrite/python/PythonParser.java +++ b/rewrite-python/src/main/java/org/openrewrite/python/PythonParser.java @@ -176,12 +176,12 @@ private void initializeRemoting(ExecutionContext ctx) throws IOException { processBuilder.redirectError(new File("/dev/null")); } pythonProcess = processBuilder.start(); - for (int i = 0; i < 5 && pythonProcess.isAlive(); i++) { + for (int i = 0; i < 30 && pythonProcess.isAlive(); i++) { if (isServerRunning(port)) { break; } try { - Thread.sleep(50); + Thread.sleep(100); } catch (InterruptedException ignore) { } }