Commit 66debb9
committed
Don't delete transform sandboxes when a bblock temporarily has no transforms
Previously, cleanup_sandbox deleted the entire bblock sandbox directory
whenever the bblock had no subprocess transforms with pip/npm deps. This
meant renaming transforms.yaml to disable transforms would wipe all
sandboxes, forcing a full reinstall when the file was renamed back.
Now we only delete a bblock's sandbox if the bblock itself no longer exists
in the register. If it exists but currently has zero subprocess transforms,
the sandboxes are left intact.1 parent 6b01f18 commit 66debb9
1 file changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
| 268 | + | |
268 | 269 | | |
269 | 270 | | |
270 | 271 | | |
| |||
277 | 278 | | |
278 | 279 | | |
279 | 280 | | |
280 | | - | |
| 281 | + | |
| 282 | + | |
281 | 283 | | |
282 | 284 | | |
283 | | - | |
| 285 | + | |
| 286 | + | |
284 | 287 | | |
285 | 288 | | |
286 | 289 | | |
| |||
289 | 292 | | |
290 | 293 | | |
291 | 294 | | |
| 295 | + | |
| 296 | + | |
292 | 297 | | |
293 | 298 | | |
294 | 299 | | |
| |||
0 commit comments