~/talk

Limiting Execution Time Through Interrupt Driven Programming

Talkat PyCon Australia 2013 · 2013-07-05..07-07· [software-architecture]
links:none on file
slides:none on file

Gunicorn hard-kills workers at 30s so an earlier 28 second alarm triggers a handler that raises a Python exception, funnels full stack traces into Sentry and makes long runners visible. That exposes a repo-count bug; pagination is switched from offset to cursor and the expensive total-count is removed. A reusable interruptingcow library and Django time limit tag let code timebox work (examples: 100 ms for regex linkification, a one second quota for per-commit diffs) and reliably degrades partial results instead of collapsing.

AI-written summary · about

  1. 0:00Intro
  2. 0:40Responsive Web Apps
  3. 0:55The Tweet
  4. 1:24Performance Dashboard
  5. 2:33Slow Requests
  6. 5:22Alarm Signal Handler
  7. 7:04Stack Traces
  8. 9:36Running in Constant Time
  9. 10:10Fixing Bad Code
  10. 10:43Environmental Issues
  11. 14:11Interrupting Cow
  12. 17:09Time Limit Tag
  13. 18:17Time Limit Code
  14. 18:39Unique Aspects
  15. 20:37Summary
  16. 21:26Questions
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.