def METHOD_NAME(file_monitor):
    """Detect worker node is connected to master after restarting clusterd.
    Args:
        file_monitor (FileMonitor): Wazuh log monitor to cluster.log
    Raises:
        TimeoutError: If no worker connection is detected before 'timeout' seconds
    """
    file_monitor.start(timeout=5, callback=callback_detect_worker_connected)