#8786 Fixed: Callback handler disconnect in between (#8787)

Fixes for  #8786 @agola11 

- Description: The flow of callback is breaking till the last chain, as
callbacks are missed in between chain along nested path. This will help
get full trace and correlate parent child relationship in all nested
chains.

  - Issue: the issue #8786 
  - Dependencies: NA
  - Tag maintainer: @agola11 
  - Twitter handle: Agarwal_Ankur
This commit is contained in:
Ankur Agarwal 2023-08-07 03:41:45 +05:30 committed by GitHub
parent 5f1aab5487
commit 797c9e92c8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -83,6 +83,7 @@ def _load_stuff_chain(
document_variable_name=document_variable_name, document_variable_name=document_variable_name,
verbose=verbose, verbose=verbose,
callback_manager=callback_manager, callback_manager=callback_manager,
callbacks=callbacks,
**kwargs, **kwargs,
) )
@ -209,6 +210,7 @@ def _load_refine_chain(
initial_response_name=initial_response_name, initial_response_name=initial_response_name,
verbose=verbose, verbose=verbose,
callback_manager=callback_manager, callback_manager=callback_manager,
callbacks=callbacks,
**kwargs, **kwargs,
) )