@@ -1479,6 +1479,7 @@ def _prepare_training_task_inputs_and_output_dir(
14791479 timeout : Optional [int ] = None ,
14801480 restart_job_on_worker_restart : bool = False ,
14811481 enable_web_access : bool = False ,
1482+ enable_dashboard_access : bool = False ,
14821483 tensorboard : Optional [str ] = None ,
14831484 ) -> Tuple [Dict , str ]:
14841485 """Prepares training task inputs and output directory for custom job.
@@ -1508,6 +1509,9 @@ def _prepare_training_task_inputs_and_output_dir(
15081509 Whether you want Vertex AI to enable interactive shell access
15091510 to training containers.
15101511 https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
1512+ enable_dashboard_access (bool):
1513+ Whether you want Vertex AI to enable access to the customized dashboard
1514+ to training containers.
15111515 tensorboard (str):
15121516 Optional. The name of a Vertex AI
15131517 [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -1547,6 +1551,8 @@ def _prepare_training_task_inputs_and_output_dir(
15471551 training_task_inputs ["tensorboard" ] = tensorboard
15481552 if enable_web_access :
15491553 training_task_inputs ["enable_web_access" ] = enable_web_access
1554+ if enable_dashboard_access :
1555+ training_task_inputs ["enable_dashboard_access" ] = enable_dashboard_access
15501556
15511557 if timeout or restart_job_on_worker_restart :
15521558 timeout = f"{ timeout } s" if timeout else None
@@ -1608,7 +1614,9 @@ def _wait_callback(self):
16081614
16091615 self ._has_logged_custom_job = True
16101616
1611- if self ._gca_resource .training_task_inputs .get ("enable_web_access" ):
1617+ if self ._gca_resource .training_task_inputs .get (
1618+ "enable_web_access"
1619+ ) or self ._gca_resource .training_task_inputs .get ("enable_dashboard_access" ):
16121620 self ._log_web_access_uris ()
16131621
16141622 def _custom_job_console_uri (self ) -> str :
@@ -2902,6 +2910,7 @@ def run(
29022910 timeout : Optional [int ] = None ,
29032911 restart_job_on_worker_restart : bool = False ,
29042912 enable_web_access : bool = False ,
2913+ enable_dashboard_access : bool = False ,
29052914 tensorboard : Optional [str ] = None ,
29062915 sync = True ,
29072916 create_request_timeout : Optional [float ] = None ,
@@ -3164,6 +3173,9 @@ def run(
31643173 Whether you want Vertex AI to enable interactive shell access
31653174 to training containers.
31663175 https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
3176+ enable_dashboard_access (bool):
3177+ Whether you want Vertex AI to enable access to the customized dashboard
3178+ to training containers.
31673179 tensorboard (str):
31683180 Optional. The name of a Vertex AI
31693181 [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -3238,6 +3250,7 @@ def run(
32383250 timeout = timeout ,
32393251 restart_job_on_worker_restart = restart_job_on_worker_restart ,
32403252 enable_web_access = enable_web_access ,
3253+ enable_dashboard_access = enable_dashboard_access ,
32413254 tensorboard = tensorboard ,
32423255 reduction_server_container_uri = reduction_server_container_uri
32433256 if reduction_server_replica_count > 0
@@ -3283,6 +3296,7 @@ def _run(
32833296 timeout : Optional [int ] = None ,
32843297 restart_job_on_worker_restart : bool = False ,
32853298 enable_web_access : bool = False ,
3299+ enable_dashboard_access : bool = False ,
32863300 tensorboard : Optional [str ] = None ,
32873301 reduction_server_container_uri : Optional [str ] = None ,
32883302 sync = True ,
@@ -3444,6 +3458,9 @@ def _run(
34443458 Whether you want Vertex AI to enable interactive shell access
34453459 to training containers.
34463460 https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
3461+ enable_dashboard_access (bool):
3462+ Whether you want Vertex AI to enable access to the customized dashboard
3463+ to training containers.
34473464 tensorboard (str):
34483465 Optional. The name of a Vertex AI
34493466 [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -3517,6 +3534,7 @@ def _run(
35173534 timeout = timeout ,
35183535 restart_job_on_worker_restart = restart_job_on_worker_restart ,
35193536 enable_web_access = enable_web_access ,
3537+ enable_dashboard_access = enable_dashboard_access ,
35203538 tensorboard = tensorboard ,
35213539 )
35223540
@@ -3834,6 +3852,7 @@ def run(
38343852 timeout : Optional [int ] = None ,
38353853 restart_job_on_worker_restart : bool = False ,
38363854 enable_web_access : bool = False ,
3855+ enable_dashboard_access : bool = False ,
38373856 tensorboard : Optional [str ] = None ,
38383857 sync = True ,
38393858 create_request_timeout : Optional [float ] = None ,
@@ -4089,6 +4108,9 @@ def run(
40894108 Whether you want Vertex AI to enable interactive shell access
40904109 to training containers.
40914110 https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
4111+ enable_dashboard_access (bool):
4112+ Whether you want Vertex AI to enable access to the customized dashboard
4113+ to training containers.
40924114 tensorboard (str):
40934115 Optional. The name of a Vertex AI
40944116 [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -4162,6 +4184,7 @@ def run(
41624184 timeout = timeout ,
41634185 restart_job_on_worker_restart = restart_job_on_worker_restart ,
41644186 enable_web_access = enable_web_access ,
4187+ enable_dashboard_access = enable_dashboard_access ,
41654188 tensorboard = tensorboard ,
41664189 reduction_server_container_uri = reduction_server_container_uri
41674190 if reduction_server_replica_count > 0
@@ -4206,6 +4229,7 @@ def _run(
42064229 timeout : Optional [int ] = None ,
42074230 restart_job_on_worker_restart : bool = False ,
42084231 enable_web_access : bool = False ,
4232+ enable_dashboard_access : bool = False ,
42094233 tensorboard : Optional [str ] = None ,
42104234 reduction_server_container_uri : Optional [str ] = None ,
42114235 sync = True ,
@@ -4363,6 +4387,9 @@ def _run(
43634387 Whether you want Vertex AI to enable interactive shell access
43644388 to training containers.
43654389 https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
4390+ enable_dashboard_access (bool):
4391+ Whether you want Vertex AI to enable access to the customized dashboard
4392+ to training containers.
43664393 tensorboard (str):
43674394 Optional. The name of a Vertex AI
43684395 [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -4430,6 +4457,7 @@ def _run(
44304457 timeout = timeout ,
44314458 restart_job_on_worker_restart = restart_job_on_worker_restart ,
44324459 enable_web_access = enable_web_access ,
4460+ enable_dashboard_access = enable_dashboard_access ,
44334461 tensorboard = tensorboard ,
44344462 )
44354463
@@ -6124,6 +6152,7 @@ def run(
61246152 timeout : Optional [int ] = None ,
61256153 restart_job_on_worker_restart : bool = False ,
61266154 enable_web_access : bool = False ,
6155+ enable_dashboard_access : bool = False ,
61276156 tensorboard : Optional [str ] = None ,
61286157 sync = True ,
61296158 create_request_timeout : Optional [float ] = None ,
@@ -6379,6 +6408,9 @@ def run(
63796408 Whether you want Vertex AI to enable interactive shell access
63806409 to training containers.
63816410 https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
6411+ enable_dashboard_access (bool):
6412+ Whether you want Vertex AI to enable access to the customized dashboard
6413+ to training containers.
63826414 tensorboard (str):
63836415 Optional. The name of a Vertex AI
63846416 [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -6447,6 +6479,7 @@ def run(
64476479 timeout = timeout ,
64486480 restart_job_on_worker_restart = restart_job_on_worker_restart ,
64496481 enable_web_access = enable_web_access ,
6482+ enable_dashboard_access = enable_dashboard_access ,
64506483 tensorboard = tensorboard ,
64516484 reduction_server_container_uri = reduction_server_container_uri
64526485 if reduction_server_replica_count > 0
@@ -6491,6 +6524,7 @@ def _run(
64916524 timeout : Optional [int ] = None ,
64926525 restart_job_on_worker_restart : bool = False ,
64936526 enable_web_access : bool = False ,
6527+ enable_dashboard_access : bool = False ,
64946528 tensorboard : Optional [str ] = None ,
64956529 reduction_server_container_uri : Optional [str ] = None ,
64966530 sync = True ,
@@ -6635,6 +6669,9 @@ def _run(
66356669 Whether you want Vertex AI to enable interactive shell access
66366670 to training containers.
66376671 https://cloud.google.com/vertex-ai/docs/training/monitor-debug-interactive-shell
6672+ enable_dashboard_access (bool):
6673+ Whether you want Vertex AI to enable access to the customized dashboard
6674+ to training containers.
66386675 tensorboard (str):
66396676 Optional. The name of a Vertex AI
66406677 [Tensorboard][google.cloud.aiplatform.v1beta1.Tensorboard]
@@ -6702,6 +6739,7 @@ def _run(
67026739 timeout = timeout ,
67036740 restart_job_on_worker_restart = restart_job_on_worker_restart ,
67046741 enable_web_access = enable_web_access ,
6742+ enable_dashboard_access = enable_dashboard_access ,
67056743 tensorboard = tensorboard ,
67066744 )
67076745
0 commit comments