πŸ’‘ Lesson learned building an agent on Cloud Run: don't schedule work to run after you send the response. On Cloud Run's default request-based CPU mode it freezes mid-run β€” do the latency-critical work before you respond. I had a webhook receiver that acknowledged events in well under a second.

Source: [Dev.to](https://dev.to/dalenguyen/the-background-task-that-froze-a-serverless-cpu-throttling-mystery-3j3d)

Sponsored