Skip to content

feat: caller dictates the cache log path; drop RUN_DIR#7

Open
swelborn wants to merge 1 commit into
model-updatesfrom
logs
Open

feat: caller dictates the cache log path; drop RUN_DIR#7
swelborn wants to merge 1 commit into
model-updatesfrom
logs

Conversation

@swelborn

@swelborn swelborn commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The orchestrator now owns where each cache writes its log, so the cache
runs in the per-transfer work dir alongside the producer's output.

  • CacheRequest gains a required absolute log_path.
  • start_cache(cache_id, config, log_path) writes config.json into
    log_path.parent and launches the binary with cwd set to that dir.
  • remove the RUN_DIR setting (and .env.example entry); keep FASTCACHE_BINARY.
  • create_cache route forwards req.log_path.

This is part 3 of 10 in a stack made with GitButler:

The orchestrator now owns where each cache writes its log, so the cache
runs in the per-transfer work dir alongside the producer's output.

- CacheRequest gains a required absolute log_path.
- start_cache(cache_id, config, log_path) writes config.json into
  log_path.parent and launches the binary with cwd set to that dir.
- remove the RUN_DIR setting (and .env.example entry); keep FASTCACHE_BINARY.
- create_cache route forwards req.log_path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant