All of the print() invocations in runner.py should be explicitly flushed
Without this, the Docker container's logs() function seems to buffer all
the messages until the container has finished executing
+from __future__ import print_function
+
import argparse
import datetime
import docker
@@ -11,6 +13,9 @@ import sys
import threading
import time
+from functools import partial
+print = partial(print, flush = True)
+
from ann_benchmarks.datasets import get_dataset, DATASETS
from ann_benchmarks.algorithms.definitions import Definition, instantiate_algorithm
from ann_benchmarks.distance import metrics
