502 Bad Gateway when manually launching an ir.cron

On a dockerized environment, when I am trying to run a cron manually, after a few minutes it shows me the messages:


Do you have any ideas how to solve this ?

It means that the job takes more time to be executed than the timeout setup on the web server.