Download _backup/scripts/after_formula2.sh from TrendeX90/ca-cube: direct link, hf CLI and curl.
- Browser
- Download file 884 Bytes
-
https://huggingface.co/datasets/TrendeX90/ca-cube/resolve/main/_backup/scripts/after_formula2.sh
- Command line
-
hf download hf://datasets/TrendeX90/ca-cube/_backup/scripts/after_formula2.sh
-
curl -L -o after_formula2.sh https://huggingface.co/datasets/TrendeX90/ca-cube/resolve/main/_backup/scripts/after_formula2.sh
884 Bytes
| # After the formula re-run has written the new cells.parquet and the first model push chain is done: | |
| # extend model outputs to re-included cells, rebuild products, push products. | |
| set -uo pipefail | |
| cd /root/trendex-ca | |
| until grep -qE "FORMULA2_EXPORT_START|Traceback" logs/formula2.log; do sleep 20; done | |
| grep -q Traceback logs/formula2.log && { echo "FORMULA2 FAILED, not extending"; exit 1; } | |
| until grep -qE "CHAIN_DONE|CHAIN_FAILED" logs/chain2.log; do sleep 20; done | |
| echo "EXTEND_START $(date -u +%T)" | |
| python -u scripts/42_extend_mask.py > logs/extend.log 2>&1 || { echo "EXTEND FAILED"; exit 1; } | |
| python -u scripts/40_products_ca.py > logs/products_ca2.log 2>&1 || { echo "PRODUCTS2 FAILED"; exit 1; } | |
| python -u scripts/50_push_ca.py products > logs/push_products_ca2.log 2>&1 || { echo "PUSH PRODUCTS2 FAILED"; exit 1; } | |
| echo "EXTEND_CHAIN_DONE $(date -u +%T)" | |