Commit 34f5a4a3 authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Added progress dots to CLI processes. Fixes #670

parent e99db3ba
Pipeline #116025 passed with stages
in 37 minutes and 23 seconds
......@@ -26,6 +26,7 @@ from .admin import admin
def _run_parallel(uploads, parallel: int, callable, label: str):
import threading
import time
from nomad import utils, processing as proc
......@@ -82,6 +83,15 @@ def _run_parallel(uploads, parallel: int, callable, label: str):
threads.append(thread)
thread.start()
def print_progress():
while True:
time.sleep(10)
print('.', end='', flush=True)
progress_thread = threading.Thread(target=print_progress)
progress_thread.daemon = True
progress_thread.start()
for thread in threads:
thread.join()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment