Commit 4af65c3
refactor(workflow): ♻️ guard the stage store with a touch() sentinel (#29)
Replace the prepare rule's directory(STAGE) output with a touch()ed
STAGE_OK marker (sopa's sentinel discipline). Snakemake then tracks a
tiny leaf file instead of a directory, so it no longer deletes/recreates
(or "moves") the stage store on a re-run and is immune to directory-mtime
quirks. segment depends on the sentinel; scripts open the store by path.
With this + marker outputs + rerun-triggers: mtime, touching any script
yields "Nothing to be done", and losing one tile re-runs only that tile
and the merge — convert/prepare stay cached.
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 32ae974 commit 4af65c3
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments