File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -78,16 +78,19 @@ def patch_config(
78
78
)
79
79
80
80
try :
81
+ log .info (f"Validating config change with { partial_config } ." )
81
82
new_config = update_config (old_config = config , partial_config = partial_config )
82
83
if attribute_changed_in_config ("large_dask_cluster" , partial_config , config ):
83
84
cluster = default_cluster (partial_config ["large_dask_cluster" ])
84
85
else :
85
86
cluster = task_manager .cluster
86
87
run_startup_tasks (new_config , cluster )
88
+ log .info (f"Config successfully updated with { partial_config } ." )
87
89
except Exception as e :
88
90
log .error ("Rollback config update due to error" , exc_info = e )
89
91
new_config = config
90
92
initialize_managers (new_config , task_manager .cluster )
93
+ log .info ("Config update cancelled." )
91
94
if isinstance (e , (AzimuthValidationError , ValidationError )):
92
95
raise HTTPException (HTTP_400_BAD_REQUEST , detail = str (e ))
93
96
else :
You can’t perform that action at this time.
0 commit comments