in kubernetes/storage/parallelstore-transfer-tool/main.py [0:0]
def wait_for_operation(operation):
"""Waits for a long-running operation to complete."""
while not operation.done():
logger.info("Waiting for operation to complete...")
time.sleep(10)