mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 07:18:27 +01:00
Merge pull request #2767 from casperdcl/locking
non-blocking intermediate progress IO
This commit is contained in:
@@ -3,6 +3,7 @@ from __future__ import print_function
|
||||
|
||||
import logging
|
||||
import sys
|
||||
from threading import RLock
|
||||
|
||||
from funcy import merge
|
||||
from tqdm import tqdm
|
||||
@@ -10,6 +11,7 @@ from tqdm import tqdm
|
||||
from dvc.utils import env2bool
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
tqdm.set_lock(RLock())
|
||||
|
||||
|
||||
class Tqdm(tqdm):
|
||||
@@ -76,6 +78,7 @@ class Tqdm(tqdm):
|
||||
leave=leave,
|
||||
desc=desc,
|
||||
bar_format="!",
|
||||
lock_args=(False,),
|
||||
**kwargs
|
||||
)
|
||||
if bar_format is None:
|
||||
|
||||
Reference in New Issue
Block a user