Skip to content

Commit

Permalink
fix(cluster): wait for process finish
Browse files Browse the repository at this point in the history
  • Loading branch information
jdobes authored and psegedy committed Nov 28, 2024
1 parent d0680c5 commit 10433ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cluster/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def launch_cluster(table: str, fields: List[str]):
with process.stdout:
for line in iter(process.stdout.readline, b""):
LOGGER.info(line[: len(line) - 1].decode("utf-8"))
if process.returncode != 0:
if process.wait() != 0:
LOGGER.error("pg_repack process returned non-zero code: %s. Exiting.", process.returncode)
sys.exit(2)

Expand Down

0 comments on commit 10433ef

Please sign in to comment.