Catalogue / pythonanywhere-2024-cpu-reset-failure

PythonAnywhere's daily CPU allowance reset stops silently, goes unnoticed until the next morning, then drowns in its backlog

PythonAnywhere, 2024. Housekeeping server and the daily CPU allowance reset.

Organisation
PythonAnywhere
Evidence
Incident report
System
Housekeeping server and the daily CPU allowance reset
As of
2024-05
Source
CPU resetting issues report: 3 - 5 May 2024

PythonAnywhere blog, published 2024-05-07

Architecture

One server runs several periodic housekeeping jobs, among them the job that resets each user's used CPU so they get a fresh allowance every day. Each account has a next reset time, and the script processes accounts whose time has come. The US-hosted and EU systems are separate.

Section: tl;dr | Near: the server responsible for running | Near: almost all our users had their

Figures, as the source states them

FigureAs statedNoteWhere
Time taken to move every user's reset time into the future14 hoursAboutNear: about 14 hours to complete

Records

Failure#f1

The daily reset job stopped silently, was noticed the next morning, and after a reboot could not clear the overdue accounts

pythonanywhere-2024-cpu-reset-failure#f1 at corpus version 26a1b3a7e3dd
Trigger

At around 3:00 UTC on 2024-05-03, on the US-hosted system, the housekeeping server ceased to run part of its schedule, the daily CPU count reset among the jobs that stopped.

Section: Details

How it failed

The team noticed only on the morning of 2024-05-04, when the server was unreachable and had to be rebooted. The reboot got scheduled jobs running again, but by then almost every user's next reset time lay in the past, so the reset script had too many accounts to process and still did not work. Users over their limit stayed there, shown a reset due in 0 minutes.

Section: Details

Why defences did not hold

The team calls it a new failure mode for which it had no alerting and no monitoring that would pick it up.

Near: It was a new failure mode, and

Impact

CPU allowances on the US system were not reset from early on 2024-05-03 until the system was fully functional again at around 2:00 UTC on 2024-05-05. Users on the EU system were not affected. A separate slowdown of web services, from bot traffic, happened at the same time, and some users wrongly concluded their web apps were slow for lack of CPU seconds. As it was a weekend, not the whole team was available to respond to users.

Section: tl;dr | Section: The fix | Near: those two issues

Fix

The server was rebooted, and the team tried to reset CPU counts by hand for users who got in touch. It then set every user's reset time into the future so that the script could pick accounts up gradually over successive runs; that update took about 14 hours. Monitoring was added to the housekeeping server that pages the on-call person much earlier if it stops running scheduled jobs in the same way.

Section: The fix | Section: Details

Review

Extracted by
Claude (feed 45)
Human review
Not started. Status recorded on 2026-12-02.