@@ -1119,7 +1119,7 @@ def run(
1119
1119
target_dataset : objective .MonitoringInput ,
1120
1120
display_name : Optional [str ] = None ,
1121
1121
model_monitoring_job_id : Optional [str ] = None ,
1122
- sync : Optional [bool ] = True ,
1122
+ sync : Optional [bool ] = False ,
1123
1123
tabular_objective_spec : Optional [objective .TabularObjective ] = None ,
1124
1124
baseline_dataset : Optional [objective .MonitoringInput ] = None ,
1125
1125
output_spec : Optional [output .OutputSpec ] = None ,
@@ -1146,7 +1146,7 @@ def run(
1146
1146
Whether to execute this method synchronously. If False, this
1147
1147
method will be executed in concurrent Future and any downstream
1148
1148
object will be immediately returned and synced when the Future
1149
- has completed. Default is True .
1149
+ has completed. Default is False .
1150
1150
tabular_objective_spec (objective.TabularObjective):
1151
1151
Optional. The tabular monitoring objective spec for the model
1152
1152
monitoring job.
@@ -1730,7 +1730,7 @@ def create(
1730
1730
output_spec : Optional [output .OutputSpec ] = None ,
1731
1731
notification_spec : Optional [notification .NotificationSpec ] = None ,
1732
1732
explanation_spec : Optional [explanation .ExplanationSpec ] = None ,
1733
- sync : bool = True ,
1733
+ sync : bool = False ,
1734
1734
) -> "ModelMonitoringJob" :
1735
1735
"""Creates a new ModelMonitoringJob.
1736
1736
@@ -1780,7 +1780,7 @@ def create(
1780
1780
Required. Whether to execute this method synchronously. If False, this
1781
1781
method will be executed in concurrent Future and any downstream
1782
1782
object will be immediately returned and synced when the Future
1783
- has completed. Default is True .
1783
+ has completed. Default is False .
1784
1784
Returns:
1785
1785
ModelMonitoringJob: The model monitoring job that was created.
1786
1786
"""
@@ -1846,7 +1846,7 @@ def _submit_job(
1846
1846
model_monitor_name : str ,
1847
1847
empty_model_monitoring_job : "ModelMonitoringJob" ,
1848
1848
gca_model_monitoring_job : gca_model_monitoring_job_compat .ModelMonitoringJob ,
1849
- sync : bool = True ,
1849
+ sync : bool = False ,
1850
1850
model_monitoring_job_id : Optional [str ] = None ,
1851
1851
project : Optional [str ] = None ,
1852
1852
location : Optional [str ] = None ,
@@ -1866,7 +1866,7 @@ def _submit_job(
1866
1866
Required. Whether to execute this method synchronously. If False, this
1867
1867
method will be executed in concurrent Future and any downstream
1868
1868
object will be immediately returned and synced when the Future
1869
- has completed. Default is True .
1869
+ has completed. Default is False .
1870
1870
model_monitoring_job_id (str):
1871
1871
Optional. The unique ID of the model monitoring job run, which
1872
1872
will become the final component of the model monitoring job
@@ -1891,6 +1891,7 @@ def _submit_job(
1891
1891
credentials = credentials ,
1892
1892
location_override = location ,
1893
1893
)
1894
+ _LOGGER .log_create_with_lro (cls )
1894
1895
created_model_monitoring_job = api_client .create_model_monitoring_job (
1895
1896
request = model_monitoring_service .CreateModelMonitoringJobRequest (
1896
1897
parent = model_monitor_name ,
0 commit comments