File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818import tarfile
1919import time
2020from typing import Dict , List , Optional , Tuple
21+ from warnings import warn
2122
2223from IPython .display import HTML , display
2324from packaging .version import Version
@@ -72,12 +73,21 @@ def __init__(
7273 image_ref : str ,
7374 exposed_ports : List [str ] = None ,
7475 reservation_id : str = None ,
76+ start : bool = True ,
77+ start_timeout : int = 0 ,
7578 runtime : str = None ,
7679 command : List [str ] = None ,
7780 workdir : str = None ,
7881 environment : Dict [str , str ] = {},
7982 device_profiles : List [str ] = [],
8083 ):
84+
85+ # check if values are not the defaults.
86+ if not start or start_timeout != 0 :
87+ warn (
88+ "start and start_timeout are deprecated. Containers always start immmediately."
89+ )
90+
8191 self .name = name
8292 self .image_ref = image_ref
8393 self .exposed_ports = exposed_ports
You can’t perform that action at this time.
0 commit comments