docs: cover the parallel multi-job cache race in the seed-job example (#705)
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
49d9b5363f
commit
38a8e8dd80
@ -334,8 +334,10 @@ steps:
|
|||||||
```
|
```
|
||||||
|
|
||||||
Separate seed job — useful for a matrix where different legs run different goals
|
Separate seed job — useful for a matrix where different legs run different goals
|
||||||
(`test`, `verify`, `-Pprofile1`, …) but all share the same `~/.m2` cache. The
|
(`test`, `check`, `verify`, `-Pprofile1`, ...) but all share the same `~/.m2`
|
||||||
seed job creates a comprehensive cache that the other jobs then reuse:
|
cache. Without a seed, whichever job finishes first creates the cache from its
|
||||||
|
own partial `.m2`, and parallel jobs race to save an equally partial cache; the
|
||||||
|
seed job instead creates one comprehensive cache that every other job reuses:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
jobs:
|
jobs:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user