Skip to content

Commit

Permalink
Added support for environment specified kernel timeout (kubeflow#1920)
Browse files Browse the repository at this point in the history
  • Loading branch information
ajchili authored and k8s-ci-robot committed Aug 22, 2019
1 parent 56dfff5 commit 56160f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion backend/src/apiserver/visualization/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
from argparse import Namespace
import importlib
import json
import os
from pathlib import Path
from typing import Text
import shlex
Expand All @@ -31,7 +32,7 @@
parser.add_argument(
"--timeout",
type=int,
default=100,
default=os.getenv('KERNEL_TIMEOUT', 100),
help="Amount of time in seconds that a visualization can run for before " +
"being stopped."
)
Expand Down

0 comments on commit 56160f1

Please sign in to comment.