[object Object]

← back to Dw Activation Calendar

Add daily schedule re-projection (regen.sh + launchd plist, 00:05)

8132bfbc2ff62fb9a2e4b11ba5dd43e976991c7f · 2026-07-13 16:45:08 -0700 · Steve

Keeps every staged SKU's assigned date+time accurate as the worklist drains.
Bootstrap is Steve-pasted (launchd persistence).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Files touched

Diff

commit 8132bfbc2ff62fb9a2e4b11ba5dd43e976991c7f
Author: Steve <steve@designerwallcoverings.com>
Date:   Mon Jul 13 16:45:08 2026 -0700

    Add daily schedule re-projection (regen.sh + launchd plist, 00:05)
    
    Keeps every staged SKU's assigned date+time accurate as the worklist drains.
    Bootstrap is Steve-pasted (launchd persistence).
    
    Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
---
 regen.sh | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/regen.sh b/regen.sh
new file mode 100644
index 0000000..fdc52d0
--- /dev/null
+++ b/regen.sh
@@ -0,0 +1,12 @@
+#!/bin/zsh
+# Daily re-projection of the SKU activation schedule: re-stamps every staged
+# item's go-live DATE+TIME against the current worklist (items already drained
+# drop out, remaining items get fresh slots). Idempotent, read-only vs dw_unified.
+set -u
+export PATH="/opt/homebrew/opt/postgresql@14/bin:/opt/homebrew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
+DIR="$HOME/Projects/dw-activation-calendar"
+LOG="$DIR/regen.log"
+cd "$DIR" || exit 1
+echo "[$(date '+%Y-%m-%d %H:%M:%S')] regen start" >>"$LOG"
+node scripts/generate-schedule.js >>"$LOG" 2>&1
+echo "[$(date '+%Y-%m-%d %H:%M:%S')] regen end rc=$?" >>"$LOG"

← e07fd55 SKU Activation: assign a durable go-live DATE+TIME to every  ·  back to Dw Activation Calendar  ·  auto-save: 2026-07-15T00:33:42 (1 files) — data/activation-s 6bb8427 →