LogReader: cache internal source available (#35761)

* cache

* fix

* match behavioir
This commit is contained in:
Shane Smiskol
2025-07-18 18:18:02 -07:00
committed by GitHub
parent 278781e5af
commit fbbad834f3

View File

@@ -2,6 +2,7 @@ import os
import posixpath
import socket
from functools import cache
from openpilot.common.retry import retry
from urllib.parse import urlparse
from openpilot.tools.lib.url_file import URLFile
@@ -9,6 +10,8 @@ from openpilot.tools.lib.url_file import URLFile
DATA_ENDPOINT = os.getenv("DATA_ENDPOINT", "http://data-raw.comma.internal/")
@cache
@retry(delay=0.0)
def internal_source_available(url: str) -> bool:
if os.path.isdir(url):
return True