← back to Designer Wallcoverings
schu-reimport: heartbeat to CNCP Looping-LIVE each tick + mark done on completion
191ba013ca83c1d1a17b3b474d53c6e308ef9703 · 2026-06-11 15:33:02 -0700 · SteveStudio2
Registered as CNCP loop schu-reimport-backfill (3600s); each tick POSTs net-new remaining so
the backfill progress is visible on CNCP's schedule panel; stops the loop + macOS-pings on
completion. Scheduled + shown per Steve's ask.
Files touched
M shopify/scripts/cadence/schu-reimport.sh
Diff
commit 191ba013ca83c1d1a17b3b474d53c6e308ef9703
Author: SteveStudio2 <stevestudio2@SteveStudio2s-Mac-Studio.local>
Date: Thu Jun 11 15:33:02 2026 -0700
schu-reimport: heartbeat to CNCP Looping-LIVE each tick + mark done on completion
Registered as CNCP loop schu-reimport-backfill (3600s); each tick POSTs net-new remaining so
the backfill progress is visible on CNCP's schedule panel; stops the loop + macOS-pings on
completion. Scheduled + shown per Steve's ask.
---
shopify/scripts/cadence/schu-reimport.sh | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/shopify/scripts/cadence/schu-reimport.sh b/shopify/scripts/cadence/schu-reimport.sh
index 33b5bb8e..8f1ef946 100755
--- a/shopify/scripts/cadence/schu-reimport.sh
+++ b/shopify/scripts/cadence/schu-reimport.sh
@@ -30,6 +30,8 @@ if [ "${nn:-1}" -lt 5 ]; then
echo "$(date '+%F %T') net-new cleared ($nn) — self-expiring $LABEL" >> "$LOG"
osascript -e 'display notification "Schumacher re-import complete — all SKUs created, net-new 0." with title "DW backfill done" sound name "Glass"' 2>/dev/null
curl -s -X POST http://127.0.0.1:3333/api/wins -H 'Content-Type: application/json' -d '{"project":"Designer-Wallcoverings","title":"Schumacher re-import backfill complete","summary":"All previously-uncreated Schumacher SKUs created as DRAFT across the daily variant-cap window; net-new cleared."}' >/dev/null 2>&1
+ curl -s -X POST http://127.0.0.1:3333/api/loops/schu-reimport-backfill/tick -H 'Content-Type: application/json' -d '{"stats":"COMPLETE — net-new 0","outcome":"ok"}' >/dev/null 2>&1
+ curl -s -X POST http://127.0.0.1:3333/api/loops/schu-reimport-backfill/stop -H 'Content-Type: application/json' -d '{}' >/dev/null 2>&1
launchctl bootout "gui/$(id -u)/$LABEL" 2>/dev/null
[ -f "$PLIST" ] && mv "$PLIST" "$PLIST.DONE"
exit 0
@@ -54,11 +56,15 @@ for i in $(seq 1 500); do
done
final=$(netnew)
echo "$(date '+%F %T') ===== tick done — net-new=$final =====" >> "$LOG"
+# heartbeat → CNCP Looping-LIVE panel (progress visible on the schedule)
+curl -s -X POST http://127.0.0.1:3333/api/loops/schu-reimport-backfill/tick -H 'Content-Type: application/json' -d "{\"stats\":\"net-new remaining: ${final:-?}\",\"outcome\":\"ok\"}" >/dev/null 2>&1
# if cleared, self-expire immediately rather than waiting for next tick
if [ "${final:-1}" -lt 5 ]; then
echo "$(date '+%F %T') backfill COMPLETE — self-expiring $LABEL" >> "$LOG"
osascript -e 'display notification "Schumacher re-import complete — all SKUs created, net-new 0." with title "DW backfill done" sound name "Glass"' 2>/dev/null
curl -s -X POST http://127.0.0.1:3333/api/wins -H 'Content-Type: application/json' -d '{"project":"Designer-Wallcoverings","title":"Schumacher re-import backfill complete","summary":"All previously-uncreated Schumacher SKUs created as DRAFT across the daily variant-cap window; net-new cleared."}' >/dev/null 2>&1
+ curl -s -X POST http://127.0.0.1:3333/api/loops/schu-reimport-backfill/tick -H 'Content-Type: application/json' -d '{"stats":"COMPLETE — net-new 0","outcome":"ok"}' >/dev/null 2>&1
+ curl -s -X POST http://127.0.0.1:3333/api/loops/schu-reimport-backfill/stop -H 'Content-Type: application/json' -d '{}' >/dev/null 2>&1
launchctl bootout "gui/$(id -u)/$LABEL" 2>/dev/null
[ -f "$PLIST" ] && mv "$PLIST" "$PLIST.DONE"
fi
← 1020f066 schu-reimport: macOS notification + CNCP win on completion (
·
back to Designer Wallcoverings
·
Kravet master price loader: WHLS cost + MAP from GDrive mast 5ba2c387 →