Skip to content

Commit c43b795

Browse files
Copilotphamquiluan
andcommitted
Improve cache key to use requirements checksum instead of epoch
Co-authored-by: phamquiluan <[email protected]>
1 parent 89eee53 commit c43b795

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
command: python main.py --method baro --dataset re2-tt
3636
no_output_timeout: 3h
3737
- save_cache:
38-
key: rcaeval-data-v1-{{ .Branch }}-{{ epoch }}
38+
key: rcaeval-data-v1-{{ .Branch }}-{{ checksum "requirements.txt" }}
3939
paths:
4040
- data
4141

@@ -60,7 +60,7 @@ jobs:
6060
command: pytest tests/test_datasets.py
6161
no_output_timeout: 3h
6262
- save_cache:
63-
key: rcaeval-data-v1-{{ .Branch }}-{{ epoch }}
63+
key: rcaeval-data-v1-{{ .Branch }}-{{ checksum "requirements.txt" }}
6464
paths:
6565
- data
6666

0 commit comments

Comments
 (0)