def _on_progress(adapter, operation, conn_id, done, total):
    """Callback when progress is reported."""

    conn_string = adapter._get_property(conn_id, 'connection_string')
    if conn_string is None:
        return

    adapter.notify_progress(conn_string, operation, done, total)