fix: detecting internal (#2534)

This commit is contained in:
Andrew Ferlitsch
2023-11-17 20:37:13 +00:00
committed by GitHub
parent d49bae8d29
commit 66427bd244
@@ -41,6 +41,7 @@ from utils import NotebookProcessors, util
# A buffer so that workers finish before the orchestrating job
WORKER_TIMEOUT_BUFFER_IN_SECONDS: int = 60 * 60
PYTHON_VERSION = "3.9" # Set default python version
# rolling time window for accumulating build results for selecting notebooks
@@ -454,7 +455,7 @@ def _save_results(results: List[NotebookExecutionResult],
fail_count = 1
if result.error_message is None:
error_type = ''
elif '500 Internal' in result.error_message or 'INTERNAL' in result.error_message:
elif '500 Internal' in result.error_message or 'INTERNAL' in result.error_message or 'internal error' in result.error_message:
error_type = 'INTERNAL'
elif 'context deadline exceeded' in result.error_message:
error_type = 'TIMEOUT'