Commit 5893fe8
committed
fix: exclude .tmp-*.gtfs.zip from the GTFS archive scan
`scanGtfsArchives` matched any path ending in `.gtfs.zip`, including the `.tmp-<id>.gtfs.zip` files gtfsclean writes mid-cleanup before atomic-renaming to the published name. On a failed pipeline run the tmp file's recent mtime made the resume path classify it as "freshly downloaded" and upsert a `.tmp-<id>` entry into the dataset registry. After the eventual successful rename, the stale tmp entry lingered alongside the real one. Tighten the pattern to require a non-dot first character so dotfile-prefixed working files never enter the registry or the prune sweeps. Also closes a subtle data-loss window where pruneFeedsOutsideCountryFilter would wipe a `.tmp-de_DELFI.gtfs.zip` mid-rename if the country prefix didn't match.1 parent 0389d8f commit 5893fe8
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
23 | 28 | | |
24 | 29 | | |
| |||
0 commit comments