fix(api): report chain progress using a new callback if none was provided
This commit is contained in:
parent
55ddb9fdac
commit
f9acf9b50f
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue