Ephemeral and Persistent Workspaces
In this article
- Explain why a run's workspace is deleted when the run ends unless you choose to keep part of it.
- Predict how a file kept from an earlier run changes a later run's result without any error.
- Write a keep policy that names the paths, the one user, the expiry and who deletes the files.
- Say what a second user's run finds on the same runner, and where the record of finished steps belongs.
- Terms defined here: ephemeral workspace, persistent workspace, cross-run contamination.
Overview
A user asks your assistant to clean a spreadsheet, gets a report, and an hour later asks a follow-up. If the files from the first run are still on disk, the follow-up is fast. That sounds like a free win until the follow-up quietly reads a leftover file and reports last week's numbers as this week's.
So for every run you decide: when it ends, is its working space deleted or kept? If anything is kept, say exactly what, for whom, until when, and who deletes it. Get that wrong and a later run, of the same user or someone else, inherits files it never asked for.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- A fresh workspace by default
- What keeping buys and what it costs
- The stale parquet
- Keep only named paths, for one user
- A second user's run
- Cleanup at 24 hours
- The record of finished steps
- Two real designs
- Common mistakes
- Sources
- Check yourself, 13 questions