Repository navigation
Lamp 1.11.40
1.11.40
- Lamp sets a Worker CPU limit on Workers Paid.
rer deploysendslimits.cpu_ms = 30000on Workers Paid. On Workers Free it omits the setting, and Cloudflare retains its 10 ms CPU limit per HTTP request. The deploy credential must be able to read the account’s Workers settings. In workers.dev mode, the Paid limit applies to the app Worker and the separate public page Worker. Verification of the Sorry import changes is local. Whether they resolve Cloudflare Error 1102 on the hosted import remains unverified. - Move in resumes large imports. Lamp keeps a private review draft and prepares it across bounded requests. Apply requires the reviewed fingerprint, resumes the same job from its last committed row position, and queues publication of the public page and feed after the final batch. If an older review was interrupted while saving its draft, Lamp returns its plan ID so you can cancel it and replan. Lamp records its local Base import-kit adaptations in
base-copies.json. In local testing with the 1,113-record Sorry export, peak sampled CPU on the Business door fell from 2.09 s to 0.77 s. - Scheduled work no longer rereads history. Lamp's minute Cron read rows in proportion to everything it had ever stored: about 1,100 rows a run after thirty days and over 7,000 with a month of provider callbacks, on a database whose Workers Free allowance every tool on the account shares. Each scheduled query now reads only work that is still due through a matching index: unfinished alert rule work, chat and social posts not yet queued for delivery, and provider callbacks not yet applied. In a local D1 test, a scheduled run read under 100 rows at both one and thirty days of history.
- Other senders' provider callbacks leave the minute sweep. On a shared mail provider account, a callback no Lamp send claims within fifteen minutes is set aside instead of being reread every minute. If its send is recorded later, Lamp still applies it. A callback for a Lamp send looks up its delivery directly instead of reading every delivery ever recorded.
- Sending a notification reads only its own delivery's records. Claiming each email or webhook delivery read every delivery attempt Lamp had ever recorded, so publishing one update cost more with every past send: about 210,000 rows for 30 subscribers after thirty days. Each claim, the update's retry schedule and the subscriber's notification links now seek their own rows, and ending an incident follow suppresses only that follower's queued notifications. In the same local test, publishing now reads about 12,000 rows, mostly for the public page rebuild.
- Public metric charts read one stored series per metric. A pushed or pulled minute point no longer rebuilds the whole public page, which read every incident and every minute of every metric on each push. A metric's first data, a reset to no data and a source going stale or resuming still republish at once; later points appear at the next five-minute refresh.
- Communication performance reads on view and on Refresh. The Settings → Reports card read every delivery in the month every 15 seconds while visible. It now reads when it comes into view and when you choose Refresh performance, and its month query seeks only that month's incidents and deliveries. An incident's reach panel still refreshes every 15 seconds.
- Health reads the migration ledger once an hour.
/healthkeeps its schema observation for an hour per Worker instead of five minutes. A release applies its migrations before its Worker starts, so new instances observe them at once;ageMsreports the observation's age. - Release verification upgrades from the declared previous release. The upgrade journey helper uses the Move in plan request supported by that release.
- Known mobile issue. A long imported component group heading (
.component-group h3) can overflow the public status page at 390 px. This predates the release and remains a follow-up.
Upgrading from 1.11.38
Back up your data and source changes and exercise a restored copy before adopting. Update to v1.11.40, run pnpm install --frozen-lockfile and use the same environment and input file for an existing deployment. Apply 0091_bounded_scheduled_reads.sql before starting the updated Worker. It adds indexes for due work and delivery lookups, markers for queued posts and unmatched provider callbacks, and a table with one public series row per metric. The migration writes zero data rows. After the upgrade or an archive restore, the minute sweep marks posts whose deliveries were already queued and sets aside old unmatched provider callbacks. The metrics repository builds missing series rows from stored minute points as scheduled work or metric writes run.