[object Object]

← back to Designer Wallcoverings

nightly runner: add best-effort George email on sweep completion (POST :9850/api/send to steve@; no creds touched — uses running server's auth; silent no-op if george-gmail down). Desktop notification remains the guaranteed ping.

49cb6051957e4f7863ff472c4e68a35fab178525 · 2026-06-13 09:08:13 -0700 · Steve Abrams

Files touched

Diff

commit 49cb6051957e4f7863ff472c4e68a35fab178525
Author: Steve Abrams <steve@designerwallcoverings.com>
Date:   Sat Jun 13 09:08:13 2026 -0700

    nightly runner: add best-effort George email on sweep completion (POST :9850/api/send to steve@; no creds touched — uses running server's auth; silent no-op if george-gmail down). Desktop notification remains the guaranteed ping.
---
 DW-Programming/nightly-color-clean.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/DW-Programming/nightly-color-clean.sh b/DW-Programming/nightly-color-clean.sh
index fecc8acd..5b48eb01 100755
--- a/DW-Programming/nightly-color-clean.sh
+++ b/DW-Programming/nightly-color-clean.sh
@@ -59,7 +59,10 @@ if [ ! -f "$SENTINEL" ]; then
     echo "$CHK" > "$SENTINEL"
     # 1. desktop ping
     /usr/bin/osascript -e "display notification \"Live color-collection sweep COMPLETE — all collections processed, ${REMOVED} mis-tagged products removed. Review then decide on cream.\" with title \"Color Cleaner ✅\" sound name \"Glass\"" 2>/dev/null
-    # 2. CNCP win (best-effort)
+    # 2. email ping via George (best-effort — only if george-gmail :9850 is up; no creds touched)
+    curl -s --max-time 10 -X POST http://127.0.0.1:9850/api/send -H 'Content-Type: application/json' \
+      -d "{\"to\":\"steve@designerwallcoverings.com\",\"subject\":\"✅ Color-collection sweep COMPLETE (live)\",\"body\":\"The live color-collection cleaner finished. All resolvable collections processed; ${REMOVED} mis-tagged products removed (reversible via ledger + --rollback). Cream skipped (no cream-only collection). Banner re-crawl queue populated. Review: node color-clean-report.js\"}" >/dev/null 2>&1
+    # 3. CNCP win (best-effort)
     curl -s -X POST http://127.0.0.1:3333/api/wins -H 'Content-Type: application/json' \
       -d "{\"project\":\"Designer-Wallcoverings\",\"title\":\"Live color-collection sweep COMPLETE\",\"summary\":\"All resolvable color collections fully processed on the live store. ${REMOVED} mis-tagged products removed (reversible via ledger). Cream skipped (no cream-only collection). Banner re-crawl queue populated.\"}" >/dev/null 2>&1
     # 3. self-disable the nightly job — nothing left to do

← 4d3e325e nightly runner: durable completion ping — check-complete.js  ·  back to Designer Wallcoverings  ·  local color enrichment for uncovered active products: local- 31f12cb9 →