// showcase's scheduled process — a `process` with a schedule, fired on a cadence. // // **Not a daemon that sleeps.** A daemon that sleeps is running between fires and holds whatever // it held; a scheduled process starts, does its work and exits, so what it costs between fires is // nothing. import { appendFileSync, mkdirSync } from "node:fs"; const where = process.env.SHOWCASE_STATE ?? "/var/lib/showcase"; mkdirSync(where, { recursive: true }); appendFileSync(`${where}/report`, `${new Date().toISOString()} ran\n`); console.log("[showcase] report written");