WordPress at a glance
function is not described

wc_update_product_lookup_tables_is_running() WC 3.6.0

See if the lookup table is being generated already.

No Hooks.

Return

true/false.

Usage

wc_update_product_lookup_tables_is_running();

Changelog

Since 3.6.0 Introduced.

Code of wc_update_product_lookup_tables_is_running() WC 5.0.0

<?php
function wc_update_product_lookup_tables_is_running() {
	$table_updates_pending = WC()->queue()->search(
		array(
			'status'   => 'pending',
			'group'    => 'wc_update_product_lookup_tables',
			'per_page' => 1,
		)
	);

	return (bool) count( $table_updates_pending );
}