client.flush() or client.finish() before the worker task completes.
These methods have different purposes:
weave.flush(): Simple, silent flushing. Recommended when Weave is integrated into worker processes or CI environments.weave.finish(): Includes progress feedback with a progress bar or status callbacks. Recommended for interactive scripts or notebooks.
client.finish():
with context manager to automatically call weave.finish() on exit:
weave.flush(). See Flushing for more information.
Troubleshooting