Hello. I have a google app engine application for java, currently using spring boot.
We have several endpoints that are requested by Cloud Scheduler .
One of the endpoints, every time is requested, it starts working properly (doing all the processes it has to do), but then, after a couple of minutes the process stops suddenly and gives our customers a 500 error.
The logs are:
- Start program failed: terminated process with error signal: terminated
- Start program failed: terminated process with error exit status 1
- Container called exit(1)
When the app fails, this happens:

It's a pattern, every time we request that endpoint (as well as some other endpoints), it starts processing what it has to process, and after a while the process goes down and takes the server down with it forcing the instances to be reset.
I have been looking all over the internet for this information, but we have found nothing.
The following pictures show all the app.yaml we have used:



Please, I need help.