runbot/runbot/controllers
Christophe Monniez ffd27739a4 [FIX] runbot: limit number of log lines shown on build page
When displaying build logs, all the messages from ir_logging about this
particular build are fetched from the database.

From time to times, it happens that the number of logged messages is
really huge. Those messages lines could also contain multiple lines,
multiplying the number of row to generate in the html page.
When this happens, the process that generates the template last a long
time and ends with a MemoryError. If the end user, bored, hits the
refresh button multiple times, all the workers will be busy building
this template. In the end, all users get a Bad Gateway from nginx.

With this commit, the number of messages that will be taken into account
will be limited to 10000.
2019-02-21 15:57:14 +01:00
..
__init__.py [FIX] runbot: resurrect badges 2018-03-13 18:14:15 +01:00
badge.py [FIX] runbot: resurrect badges 2018-03-13 18:14:15 +01:00
frontend.py [FIX] runbot: limit number of log lines shown on build page 2019-02-21 15:57:14 +01:00
hook.py [REF] runbot: hook - Find the right repo from payload 2018-04-19 09:59:27 +02:00