fix: ignore errors in GetLog (#15181)
This commit is contained in:
parent
d30f3c8149
commit
ffdbcbd16e
|
|
@ -331,7 +331,12 @@ class HiveEngineSpec(PrestoEngineSpec):
|
|||
cursor.cancel()
|
||||
break
|
||||
|
||||
log = cursor.fetch_logs() or ""
|
||||
try:
|
||||
log = cursor.fetch_logs() or ""
|
||||
except Exception: # pylint: disable=broad-except
|
||||
logger.warning("Call to GetLog() failed")
|
||||
log = ""
|
||||
|
||||
if log:
|
||||
log_lines = log.splitlines()
|
||||
progress = cls.progress(log_lines)
|
||||
|
|
|
|||
Loading…
Reference in New Issue