Skip to main content

CACHE_QUERY_TIMEOUT_SECS

Constant CACHE_QUERY_TIMEOUT_SECS 

Source
pub const CACHE_QUERY_TIMEOUT_SECS: u64 = 5;
Expand description

Timeout for the “where does your cache live?” queries devp caches makes.

Deliberately not command_timeout_secs. That ceiling is sized for npm ci and cargo metadata; npm config get cache prints one line and returns. A query that has not answered in five seconds is a broken installation, and the report is better off falling back to the conventional path than waiting ten minutes for it.