⏳
__('Synchronization recovery check', 'valuespace'), 'vasp_run_sync_service' => __('Data synchronization fallback wake', 'valuespace'), 'vasp_wc_catalog_feed' => __('Catalog feed', 'valuespace'), 'vasp_wc_catalog_push_refresh' => __('Nightly catalog sync', 'valuespace'), 'vasp_wc_catalog_realtime_retry' => __('Realtime catalog recovery', 'valuespace'), 'vasp_deliver_events' => __('Event delivery', 'valuespace'), 'vasp_refresh_tokens' => __('Credential renewal', 'valuespace'), VASP_ACTION_RETRY_USER_ACCESS_REVOCATION => __('Access cleanup retry', 'valuespace'), ]; return $labels[$vasp_hook] ?? __('ValueSpace task', 'valuespace'); } /** Return WP Crontrol's event monitor filtered to one scheduled hook. */ function vasp_system_info_scheduled_task_url(string $vasp_hook): string { if (!defined('WP_CRONTROL_VERSION')) { return ''; } return add_query_arg([ 'page' => 'wp-crontrol', 's' => sanitize_key($vasp_hook), ], admin_url('tools.php')); } $vasp_config = vasp_get_config(); $vasp_environment = function_exists('vasp_get_environment') ? vasp_get_environment() : 'production'; $vasp_request_cron_disabled = defined('DISABLE_WP_CRON') && DISABLE_WP_CRON; $vasp_scheduled_tasks = []; if (function_exists('vasp_scheduler_get_plugin_events')) { foreach (vasp_scheduler_get_plugin_events() as $vasp_scheduled_event) { $vasp_hook = (string) ($vasp_scheduled_event['hook'] ?? ''); if ($vasp_hook === '') { continue; } if (!isset($vasp_scheduled_tasks[$vasp_hook])) { $vasp_scheduled_tasks[$vasp_hook] = [ 'event' => $vasp_scheduled_event, 'count' => 0, ]; } $vasp_scheduled_tasks[$vasp_hook]['count']++; } } ?>

__('Catalog data', 'valuespace'), 'woocommerce_images' => __('WooCommerce Images', 'valuespace'), 'events' => __('Event delivery', 'valuespace'), ]; $vasp_stage_labels = [ 'authentication' => __('Renewing the ValueSpace connection', 'valuespace'), 'start' => __('Starting catalog sync', 'valuespace'), 'progress' => __('Checking sync status', 'valuespace'), 'start_requested' => __('Queued', 'valuespace'), 'catalog' => __('Preparing catalog data', 'valuespace'), 'product_check' => __('Checking for product updates', 'valuespace'), 'products' => __('Products', 'valuespace'), 'brands' => __('Brands', 'valuespace'), 'categories' => __('Categories', 'valuespace'), 'tags' => __('Tags', 'valuespace'), 'attributes' => __('Attributes', 'valuespace'), 'reconciliation' => __('Reconciling catalog records', 'valuespace'), 'completion' => __('Completing catalog upload', 'valuespace'), 'realtime' => __('Realtime catalog updates', 'valuespace'), 'audit' => __('Daily image audit', 'valuespace'), 'image_download' => __('Downloading source image', 'valuespace'), 'image_audit' => __('Checking for missing images', 'valuespace'), 'images' => __('WooCommerce Images', 'valuespace'), 'events' => __('Event delivery', 'valuespace'), ]; foreach ($vasp_sync_feeds as $vasp_name => $vasp_feed) : ?>

0) { printf( /* translators: 1: Number of products checked. 2: Total number of products to check. */ esc_html__('%1$d of %2$d products checked', 'valuespace'), (int) $vasp_feed['product_scopes_processed'], (int) $vasp_feed['product_scopes_total'] ); } elseif (($vasp_feed['stage'] ?? '') === 'products' && ($vasp_feed['product_send_total'] ?? 0) > 0) { printf( /* translators: 1: Number of products sent. 2: Total number of products to send. */ esc_html__('%1$d of %2$d products sent', 'valuespace'), (int) $vasp_feed['product_send_processed'], (int) $vasp_feed['product_send_total'] ); } else { printf( /* translators: %d: Number of catalog upload steps waiting. */ esc_html__('%d upload steps waiting', 'valuespace'), (int) $vasp_feed['catalog_packets'] ); } } elseif ($vasp_name === 'woocommerce_images' && ($vasp_feed['stage'] ?? '') === 'image_check' && ($vasp_feed['image_scan_total'] ?? 0) > 0) { printf( /* translators: 1: Number of products checked for image updates. 2: Total number of products to check. */ esc_html__('%1$d of %2$d products checked for image updates', 'valuespace'), (int) $vasp_feed['image_scan_processed'], (int) $vasp_feed['image_scan_total'] ); } else { printf( /* translators: %d: Number of catalog entities or events waiting to be sent. */ esc_html__('%d items waiting', 'valuespace'), (int) ($vasp_name === 'events' ? $vasp_feed['counts']['pending_count'] : $vasp_feed['image_entities']) ); } ?>


0) : ?>
0 ? esc_html(vasp_info_format_time($vasp_feed['next_attempt_at'])) : '—'; ?> 0) : ?>

0) : ?>
0 ? esc_html(vasp_info_format_time($vasp_feed['lock_expires_at'])) : '—'; ?>

$vasp_scheduled_task) : ?>



1) : ?> ·