1
0
Fork 0

fix(api): report chain progress using a new callback if none was provided

This commit is contained in:
Sean Sube 2023-09-12 18:19:07 -05:00
parent 55ddb9fdac
commit f9acf9b50f
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 3 additions and 1 deletions

View File

@ -105,7 +105,9 @@ class ChainPipeline:
"""
DEPRECATED: use `run` instead
"""
if callback is not None:
if callback is None:
callback = worker.get_progress_callback()
else:
callback = ChainProgress.from_progress(callback)
start = monotonic()