@@ -221,7 +221,7 @@ def run_once(self) -> None:
221221 self ._delta_memory .clear ()
222222
223223 # The remaining delta is the result of state updates triggered outside the setattr, e.g, by a list append
224- delta = Delta (DeepDiff (self ._last_state , self ._work .state ))
224+ delta = Delta (DeepDiff (self ._last_state , self ._work .state , verbose_level = 2 ))
225225 if not delta .to_dict ():
226226 return
227227 self ._last_state = deepcopy (self ._work .state )
@@ -256,7 +256,7 @@ def __call__(self, name: str, value: Any) -> None:
256256 with _state_observer_lock :
257257 state = deepcopy (self .work .state )
258258 self .work ._default_setattr (name , value )
259- delta = Delta (DeepDiff (state , self .work .state ))
259+ delta = Delta (DeepDiff (state , self .work .state , verbose_level = 2 ))
260260 if not delta .to_dict ():
261261 return
262262
@@ -408,7 +408,9 @@ def run_once(self):
408408 make_status (WorkStageStatus .FAILED , message = str (e ), reason = WorkFailureReasons .USER_EXCEPTION )
409409 )
410410 self .delta_queue .put (
411- ComponentDelta (id = self .work_name , delta = Delta (DeepDiff (reference_state , self .work .state )))
411+ ComponentDelta (
412+ id = self .work_name , delta = Delta (DeepDiff (reference_state , self .work .state , verbose_level = 2 ))
413+ )
412414 )
413415 self .work .on_exception (e )
414416 print ("########## CAPTURED EXCEPTION ###########" )
@@ -437,7 +439,9 @@ def run_once(self):
437439 reference_state = deepcopy (self .work .state )
438440 self .work ._calls [call_hash ]["statuses" ].append (make_status (WorkStageStatus .SUCCEEDED ))
439441 self .work ._calls [call_hash ]["ret" ] = ret
440- self .delta_queue .put (ComponentDelta (id = self .work_name , delta = Delta (DeepDiff (reference_state , self .work .state ))))
442+ self .delta_queue .put (
443+ ComponentDelta (id = self .work_name , delta = Delta (DeepDiff (reference_state , self .work .state , verbose_level = 2 )))
444+ )
441445
442446 # 18. Update the work for the next delta if any.
443447 self ._proxy_setattr (cleanup = True )
@@ -452,7 +456,7 @@ def _sigterm_signal_handler(self, signum, frame, call_hash: str) -> None:
452456 self .work ._calls [call_hash ]["statuses" ].append (
453457 make_status (WorkStageStatus .STOPPED , reason = WorkStopReasons .SIGTERM_SIGNAL_HANDLER )
454458 )
455- delta = Delta (DeepDiff (state , self .work .state ))
459+ delta = Delta (DeepDiff (state , self .work .state , verbose_level = 2 ))
456460 self .delta_queue .put (ComponentDelta (id = self .work_name , delta = delta ))
457461
458462 # kill the thread as the job is going to be terminated.
0 commit comments