#34159: Django potential improvement - views decorator for http_timeout with
auto
retry
-------------------------------------+-------------------------------------
Reporter: JDonMc | Owner: nobody
Type: New | Status: new
feature |
Component: HTTP | Version: 4.1
handling | Keywords: views decorator
Severity: Normal | timeout
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 1 |
-------------------------------------+-------------------------------------
Sometimes django views take 30+ seconds to load, and then timeout.
The weird thing is, that you can refresh the page from a browser, and it
will load in less than a second.
Because it's non-deterministic, it's really hard to solve.
Ideally I'd set a timer so that any request that takes 4+ seconds to solve
is killed and retried,
and a secondary timer so that any request that has been retried 7 times
redirects to an error page,
on the error page implement some javascript to re-request the page.
I understand it's a bit much, but the first thing is important to me.
Most 99% of my requests are under 2 seconds,
but for some reason at random intervals it hits 30+ and sends an 503
error,
But it's non-deterministic because that same page can still be loaded
exactly the same within 2 seconds.
--
Ticket URL: <https://code.djangoproject.com/ticket/34159>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701847a4e802e-5edff6b4-a171-4e31-9be3-c92e8d87a4fc-000000%40eu-central-1.amazonses.com.