diff options
| author | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-14 16:44:07 +0000 |
|---|---|---|
| committer | Pjotr Prins <pjotr.public01@thebird.nl> | 2026-11-14 16:44:07 +0000 |
| commit | a89781c2eaf4b503f416cc2aba2420cd15fa5289 (patch) | |
| tree | 1685790d7fde5b45da4f280210579e56fc0ae3d7 /test/python/test_dev_token.py | |
| parent | 05907254d44ccde0aa0c1f536d2ba838d0645402 (diff) | |
| download | genenetwork4-a89781c2eaf4b503f416cc2aba2420cd15fa5289.tar.gz | |
cache: say when ravanan's cache cannot survive a restart, and document what does
Ravanan's reuse key is (script, inputs) and both live in its --store under RAVANAN_CACHE_DIR, so the cache's lifetime is that directory's, not the container's. Measured: 13.6 s cold, then 3.6 s for the identical request after restarting the container, with the store unchanged at 14 files -- Slurm's own spool state is lost and irrelevant to reuse. The default cache dir is under /tmp, which is neither durable nor visible inside a container that bind-mounts one host path, so a job cannot read the interned inputs. The reply now carries a note when the cache dir is under /tmp, naming the fix, rather than leaving it to be discovered as a slow or failing run. docs/ravanan-slurm.md gains a "What survives a restart" table (ravanan store, scratch, token registry, gemma-wrapper cache, Slurm state) and a path checklist; the README points at it.
Diffstat (limited to 'test/python/test_dev_token.py')
0 files changed, 0 insertions, 0 deletions
