You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Control how sccache handles write failures across cache levels using `SCCACHE_MULTILEVEL_WRITE_POLICY`:
135
+
Control how sccache handles write failures across cache levels using `SCCACHE_MULTILEVEL_WRITE_ERROR_POLICY`:
136
136
137
137
**Available policies**:
138
138
-**`ignore`** - Never fail on write errors, log warnings only (most permissive)
@@ -146,21 +146,21 @@ Control how sccache handles write failures across cache levels using `SCCACHE_MU
146
146
**Example 1: Default Behavior (l0 policy)**
147
147
```bash
148
148
export SCCACHE_MULTILEVEL_CHAIN="disk,redis,s3"
149
-
exportSCCACHE_MULTILEVEL_WRITE_POLICY="l0"# or omit, it's the default
149
+
exportSCCACHE_MULTILEVEL_WRITE_ERROR_POLICY="l0"# or omit, it's the default
150
150
```
151
151
Compilation succeeds if disk write succeeds. Redis/S3 failures are logged but don't block compilation. Ensures local cache is always populated. **Best for most use cases.**
Compilation always succeeds, even if all writes fail. Write failures are logged as warnings. **Best for unstable cache backends** where you don't want cache issues blocking builds.
159
159
160
160
**Example 3: Strict Consistency (all policy)**
161
161
```bash
162
162
export SCCACHE_MULTILEVEL_CHAIN="disk,redis,s3"
163
-
exportSCCACHE_MULTILEVEL_WRITE_POLICY="all"
163
+
exportSCCACHE_MULTILEVEL_WRITE_ERROR_POLICY="all"
164
164
```
165
165
Compilation succeeds only if all read-write levels succeed. Any write failure fails the compilation. **Best for critical environments** where cache consistency is mandatory.
166
166
@@ -170,7 +170,7 @@ Any level configured as read-only (e.g., `SCCACHE_LOCAL_RW_MODE=READ_ONLY`) is a
170
170
171
171
```bash
172
172
export SCCACHE_MULTILEVEL_CHAIN="disk,redis"
173
-
exportSCCACHE_MULTILEVEL_WRITE_POLICY="all"
173
+
exportSCCACHE_MULTILEVEL_WRITE_ERROR_POLICY="all"
174
174
export SCCACHE_LOCAL_RW_MODE="READ_ONLY"# Disk is read-only
175
175
# Compilation succeeds if Redis write succeeds (disk is skipped)
176
176
```
@@ -180,7 +180,7 @@ export SCCACHE_LOCAL_RW_MODE="READ_ONLY" # Disk is read-only
180
180
```bash
181
181
# Multi-level configuration
182
182
export SCCACHE_MULTILEVEL_CHAIN="disk,redis,s3"
183
-
exportSCCACHE_MULTILEVEL_WRITE_POLICY="l0"# Default: fail only if disk fails
183
+
exportSCCACHE_MULTILEVEL_WRITE_ERROR_POLICY="l0"# Default: fail only if disk fails
0 commit comments