[object Object]

← back to Rebel Walls Push

daily-push.sh: capped daily slice wrapper for the staggered push

d3719d082ec9e31b04df6131ac07bf38a1b9d0f8 · 2026-06-09 12:59:50 -0700 · SteveStudio2

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Files touched

Diff

commit d3719d082ec9e31b04df6131ac07bf38a1b9d0f8
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Tue Jun 9 12:59:50 2026 -0700

    daily-push.sh: capped daily slice wrapper for the staggered push
    
    Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---
 scripts/daily-push.sh | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/scripts/daily-push.sh b/scripts/daily-push.sh
new file mode 100755
index 0000000..53bd5d6
--- /dev/null
+++ b/scripts/daily-push.sh
@@ -0,0 +1,19 @@
+#!/usr/bin/env bash
+# Daily Rebel Walls staggered push — runs the next slice of net-new SKUs
+# (dedup_skip-filtered) up to Shopify's daily variant-creation cap.
+# Safe to re-run: push.js only attempts rows without a shopify_product_id.
+set -u
+cd "$HOME/Projects/rebel-walls-push"
+
+LOG="data/daily-push-$(date +%Y%m%d-%H%M%S).log"
+# Cap slightly above the observed ~496/day variant allowance so we stop
+# politely instead of hammering 2k+ VARIANT_THROTTLE_EXCEEDED errors.
+node scripts/push.js --all --limit 550 2>&1 | tee "$LOG"
+
+echo "----- summary -----"
+tail -3 "$LOG" | grep -E "DONE|ok=" || true
+TOTAL_OK=$(grep -v '"error"' data/push-progress.jsonl | grep -o '"dw_sku":"[^"]*"' | sort -u | wc -l | tr -d ' ')
+echo "cumulative distinct SKUs pushed OK: $TOTAL_OK / 2874"
+if [ "$TOTAL_OK" -ge 2874 ]; then
+  echo "ALL NET-NEW SKUS PUSHED — daily job can be retired."
+fi

← 1e70258 dedup-guard push: skip 759 patterns already live under older  ·  back to Rebel Walls Push  ·  launchd plist for daily staggered push (Steve pastes the loa e01aadd →