type ) { return AgentResult::refused( 'unsupported task type' ); } $sources = $this->index_manager->start_reconcile(); return AgentResult::ok( array( 'sources' => $sources, 'enqueued' => count( $sources ), ) ); } /** * {@inheritDoc} */ public function self_check( AgentContext $context ): HealthReport { return ( new HealthReport() )->add( 'scheduler_available', function_exists( 'as_enqueue_async_action' ), '', false ); } }