Skip to content

Commit 432eeab

Browse files
committed
if weekly weights pipeline runs, cache and restore params from daily run
1 parent 03df41d commit 432eeab

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

facebook/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,12 @@ $(WEEKLY_WEIGHTS): $(TODAY)
181181
MSG="Expected new weekly weights file to start on: $$EXPECTED_NEW_WEEKLY_WEIGHTED; Actual new file starts on: $$MIN_NEW_WEEKLY_WEIGHTED"; \
182182
echo "WARNING: $${MSG}" >> $(MESSAGES); \
183183
fi
184+
# Save existing params file from normal daily run.
185+
if [ -f params.json ]; then cp params.json params.daily.json; fi
184186
$(MAKE) weekly-weights-pipeline
187+
rm -f params.json
188+
# Restore params file from normal daily run.
189+
mv params.daily.json params.json
185190
fi
186191

187192
dev: delphiFacebook_1.0.tar.gz

0 commit comments

Comments
 (0)