Looking into it

AER electricity plan refresh fails on Cloudflare memory limit

From HeathoSent 28 minutes agovia public-page

The scheduled AER catalogue refresh and both retries failed on 3 and 4 December (Sydney time), reporting that the Cloudflare Worker exceeded its memory limit. The last confirmed successful refresh was 2 December. Failure notices say the prior plans were retained. The catalogue currently served and any effect on comparisons are unverified.

First confirm which snapshot is live, its age and any impact on comparisons. Identify which stage hit the limit before retrying. The publish step currently reads and hashes the staged plan set in memory; that is a candidate to measure, not a confirmed cause.

Permanent fix: bound work by bytes and rows, not just time. Stream or cap source responses before parsing; checkpoint small batches and resume safely without duplicates. Validate and hash in bounded batches or in the database, then promote only a complete, verified snapshot atomically. Keep the last verified snapshot on failure and alert on its age. Avoid repeating a memory-failing batch unchanged.

Acceptance: replay a large fixture and an interrupted publish in staging, demonstrate memory headroom below Cloudflare's 128 MB limit, prove no partial catalogue is served, and verify that the next scheduled run publishes and serves the new snapshot.

Replies

No reply yet. You can add something below at any time.

Up to 20 images, or paste one straight from your clipboard. Big screenshots are shrunk in your browser before they are sent.

Sent automatically with your message

Your browser sent this along so the team can reproduce what you saw. Nothing here was typed by you.

Browser
Chrome · Linux