[object Object]

← back to Designer Wallcoverings

Add launchd auto-resume agent (com.steve.dw-pricing-resume): RunAtLoad + 30m, Claude-session-independent

a51fa0c8382515543b089d662b98574ddb39455b · 2026-06-11 09:50:28 -0700 · SteveStudio2

Files touched

Diff

commit a51fa0c8382515543b089d662b98574ddb39455b
Author: SteveStudio2 <stevestudio2@SteveStacStudio.lan>
Date:   Thu Jun 11 09:50:28 2026 -0700

    Add launchd auto-resume agent (com.steve.dw-pricing-resume): RunAtLoad + 30m, Claude-session-independent
---
 shopify/scripts/dw-pricing-resume.sh | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/shopify/scripts/dw-pricing-resume.sh b/shopify/scripts/dw-pricing-resume.sh
new file mode 100755
index 00000000..2b820408
--- /dev/null
+++ b/shopify/scripts/dw-pricing-resume.sh
@@ -0,0 +1,25 @@
+#!/usr/bin/env bash
+# DW pricing auto-resume — runs INDEPENDENT of any Claude Code session.
+# Loaded by launchd (com.steve.dw-pricing-resume): RunAtLoad + every 30 min.
+# Survives reboot/logout-of-Claude. Single-flight lock so ticks never overlap.
+set -u
+export PATH=/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin
+DIR="$HOME/Projects/Designer-Wallcoverings/shopify/scripts"
+LOG="$DIR/cadence/data/pricing-resume.log"
+LOCK="/tmp/dw-pricing-resume.lock"
+mkdir -p "$DIR/cadence/data"
+
+# single-flight: skip if a previous tick is still running
+if ! mkdir "$LOCK" 2>/dev/null; then echo "$(date '+%F %T') still running — skip" >> "$LOG"; exit 0; fi
+trap 'rmdir "$LOCK" 2>/dev/null' EXIT
+
+cd "$DIR" || exit 1
+echo "$(date '+%F %T') ===== resume tick =====" >> "$LOG"
+
+# Schumacher cost via Browserbase (cloud browser — does NOT need local Chrome).
+# Writes only schumacher_catalog.trade_price for rows missing price; no product
+# creation, no customer-facing writes. Small batch to bound Browserbase cost.
+# NOTE: login submit still needs a fix (browserbase/SCHUMACHER-NOTES.md) — until
+# then this logs a failed login and exits cheaply; it starts producing once fixed.
+node schu-browserbase-scrape.js --limit 40 --write >> "$LOG" 2>&1
+echo "$(date '+%F %T') tick done" >> "$LOG"

← 6a69015d Schumacher cost via Browserbase scraper (residential IP, rea  ·  back to Designer Wallcoverings  ·  Schumacher recrawl cracked: authenticated product API (brows 51a55b8a →