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):
def print_progress():
while True:
print('.', end='', flush=True)
progress_thread = threading.Thread(target=print_progress)
progress_thread.daemon = True
for thread in threads:
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