Open aurelienWls opened 2 years ago
I guess it is the same issue we discussed about @loicmathieu, the idea would be to truncate logs if they are too large. @aurelienWls, is it causing any trouble without going to the logs tab or the issue occurs only when going into this tab ?
An execution can have a lot of logs, at the moment, when we list the logs from the repository, we just return the list which load all logs into memory.
What we need is to use a Publisher (or a Stream) and don't load all logs into memory.
From the controller, we need to paginate logs everywhere (or only return the first 1000 and display a message to redirect to downloading the logs). For downloading, we should stream the logs into the download response.
Expected Behavior
When we have a flow with a lot of log the webserver should handdle this carrefully
Actual Behaviour
When we have a flow with a lot of log, sometimes the webserver goes down Here is the stacktrace
Steps To Reproduce
Create a flow with huge log. It start to fail with a log of 10Mb - 15Mb
Environment Information
Example flow
No response