WordPress at a glance
function is not described

Automattic\WooCommerce\Admin\Schedulers

ImportScheduler::is_importing() public WC 1.0

Returns true if an import is in progress.

{} It's a method of the class: ImportScheduler{}

No Hooks.

Return

true|false. Nothing.

Usage

$result = ImportScheduler::is_importing();

Code of ImportScheduler::is_importing() WC 5.3.0

<?php
public static function is_importing() {
	$pending_jobs = self::queue()->search(
		array(
			'status'   => 'pending',
			'per_page' => 1,
			'claimed'  => false,
			'search'   => 'import',
			'group'    => self::$group,
		)
	);
	if ( empty( $pending_jobs ) ) {
		$in_progress = self::queue()->search(
			array(
				'status'   => 'in-progress',
				'per_page' => 1,
				'search'   => 'import',
				'group'    => self::$group,
			)
		);
	}

	return ! empty( $pending_jobs ) || ! empty( $in_progress );
}