mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-01 19:25:56 +00:00
fix(ge-profiler): catch TimeoutError (#12855)
This commit is contained in:
parent
86f4b805cf
commit
0d54352e3f
@ -1,3 +1,4 @@
|
||||
import concurrent.futures
|
||||
import logging
|
||||
from concurrent.futures import ThreadPoolExecutor, as_completed
|
||||
from dataclasses import dataclass, field
|
||||
@ -91,7 +92,7 @@ class UnityCatalogGEProfiler(GenericProfiler):
|
||||
profile_requests.append(profile_request)
|
||||
if i > 0 and i % 100 == 0:
|
||||
logger.info(f"Finished table-level profiling for {i} tables")
|
||||
except TimeoutError:
|
||||
except (TimeoutError, concurrent.futures.TimeoutError):
|
||||
logger.warning("Timed out waiting to complete table-level profiling.")
|
||||
|
||||
if len(profile_requests) == 0:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user