Compare commits

...
Author SHA1 Message Date
Andrew Ferlitsch c0c2583f2d debug: timeout fix 2022-12-17 17:56:04 +00:00
Andrew Ferlitsch e83a341a00 fix: timeout issue for notebook test 2022-12-17 02:09:38 +00:00
2 changed files with 62 additions and 1 deletions
@@ -245,7 +245,7 @@ def process_and_execute_notebook(
result.logs_bucket = operation_metadata.build.logs_bucket
# Block and wait for the result
operation_result = operation.result()
operation_result = operation.result(timeout=86400)
result.duration = datetime.datetime.now() - time_start
result.is_pass = True
+61
View File
@@ -0,0 +1,61 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "346219a0-c421-4986-89c0-1cab5f9896bc",
"metadata": {},
"outputs": [],
"source": [
"import time"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "fdeaadd2-900d-4580-a637-b0ec3c892ce7",
"metadata": {},
"outputs": [],
"source": [
"time.sleep(5 * 60)\n",
"print(\"5 mins\")\n",
"\n",
"time.sleep(5 * 60)\n",
"print(\"10 mins\")\n",
"\n",
"time.sleep(5 * 60)\n",
"print(\"15 mins\")\n",
"\n",
"time.sleep(5 * 60)\n",
"print(\"20 mins\")"
]
}
],
"metadata": {
"environment": {
"kernel": "python3",
"name": "common-cpu.m95",
"type": "gcloud",
"uri": "gcr.io/deeplearning-platform-release/base-cpu:m95"
},
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.12"
}
},
"nbformat": 4,
"nbformat_minor": 5
}