Live

PyPI degraded performance, Jun 27 2022 (4 h 19 min)

This incident is over. PyPI reported it on pypi.org - CDN and pypi.org - Email at 14:20 UTC on Jun 27 2022 and resolved it after 4 h 19 min.

PyPI status page: “Queue delay affecting CDN purges and emails”

### Summary PyPI initially experienced delays in features which used a centralized task queue \(such as purging the CDN cache and sending emails\) due to a poorly performing task type. This was followed by an outage due to the combination of the steps taken to mitigate the queue issue and unrelated changes that affected PyPI’s performance, resulting in PyPI becoming unavailable via the web or for installations. ### Details On Thu, 23 Jun 2022 at 04:55 UTC, PyPI admins deployed a change which introduced a new periodic task designed to aggregate statistics about 2FA usage on PyPI. This task was designed to run every 5 minutes and sampled multiple counts of different characteristics of 2FA usage. This task used a database query that attempted to count a large number of rows, and had poor performance, causing high database utilization and a long processing time for the task. However, while long-running, the task was finishing and publishing metrics, and so PyPI admins were unaware of its p

The latest update from PyPI.

State

Resolved

Started

Lasted

4 h 19 min

Worst impact

Degraded

Timeline

8 updates
14:2015:2416:2917:3318:38
DegradedUpdate postedTimes in UTC

Investigating

45 min 17%

Identified

1 h 18 min 30%

Monitoring

2 h 15 min 52%

Updates

Times in UTC

As posted by PyPI

Postmortem

### Summary PyPI initially experienced delays in features which used a centralized task queue \(such as purging the CDN cache and sending emails\) due to a poorly performing task type. This was followed by an outage due to the combination of the steps taken to mitigate the queue issue and unrelated changes that affected PyPI’s performance, resulting in PyPI becoming unavailable via the web or for installations. ### Details On Thu, 23 Jun 2022 at 04:55 UTC, PyPI admins deployed a change which introduced a new periodic task designed to aggregate statistics about 2FA usage on PyPI. This task was designed to run every 5 minutes and sampled multiple counts of different characteristics of 2FA usage. This task used a database query that attempted to count a large number of rows, and had poor performance, causing high database utilization and a long processing time for the task. However, while long-running, the task was finishing and publishing metrics, and so PyPI admins were unaware of its p

Resolved

This incident has been resolved.

Monitoring

Backends are recovering

Monitoring

A long running migration has caused our backends to become unhealthy, affecting all web traffic.

Monitoring

We've disabled the specific tasks causing delays in the queue and are continuing to monitor the queue as it drains.

Identified

We've identified specific jobs in our queue that are causing processing delays and are working to remove them.

Investigating

We are continuing to investigate this issue.

Investigating

A delay in our job queue is affecting CDN purges causing public pages to be stale and delays in email sending for notifications, email validation, password resets, etc.

Affected components

2
pypi.org - CDNpypi.org - Email

PyPI in the last 90 days

Full history
90 days agoToday

Incidents in 90 days

5

Days with an incident

5

Median duration

4 h 19 min

This incident

About the median

How long each incident lasted, on the day it started. The outlined bar is this incident.

12 h 42 min
median 4 h 19 min
90 days agoToday

Related incidents

All incidents

Follow PyPI

Your coding agent knows when PyPI is down, and tells you when a failure is theirs, not yours. You can also get PyPI incidents in a feed reader or in Slack.

Prompt
Install the outages.live MCP server, so that when something breaks you can tell if the cause is a provider we depend on and not my code. It reads the official status pages of cloud, AI, payment and developer providers and gives you their incidents as MCP tools.

Add it as a remote MCP server named "outages" at https://outages.live/mcp (Streamable HTTP, no authentication), with your CLI command or your MCP config file.

Then:
1. Make sure it connects and shows the tools get_provider, list_feed and send_feedback.
2. Call get_provider with "pypi" and tell me if PyPI has a problem right now.
3. From now on, when a call to a third-party service fails or becomes slow, call get_provider for that service before you change my code.

Paste this into any coding agent. It adds the server with its own MCP setup.

Registry: Glama

RSS
https://outages.live/feed.xml?providers=pypi
Slack
/feed subscribe https://outages.live/feed.xml?providers=pypi

FAQ

Go from tracking outages to fixing production issues with Polylane.

Try Polylane