mirror of
https://github.com/microsoft/graphrag.git
synced 2026-01-14 09:07:20 +08:00
Fix on_error Callbacks (#1526)
This commit is contained in:
parent
983664397b
commit
329b83cf7f
@ -0,0 +1,4 @@
|
||||
{
|
||||
"type": "patch",
|
||||
"description": "Fix exception on error callbacks"
|
||||
}
|
||||
@ -276,7 +276,7 @@ async def run_pipeline(
|
||||
await _dump_stats(context.stats, context.storage)
|
||||
except Exception as e:
|
||||
log.exception("error running workflow %s", last_workflow)
|
||||
cast("WorkflowCallbacks", callbacks).on_error(
|
||||
cast("WorkflowCallbacks", callback_chain).on_error(
|
||||
"Error running pipeline!", e, traceback.format_exc()
|
||||
)
|
||||
yield PipelineRunResult(last_workflow, None, [e])
|
||||
|
||||
Loading…
Reference in New Issue
Block a user