node.js – Google App Engine Start program Failed

I have a very basic NodeJS application hosted on Google App Engine that executes an async function on 15 second intervals. The deployment is successful and the app starts and runs fine, but stops after about 30 minutes with the following error logs. This runs fine locally, though.

Quitting on terminated signal

Start program failed: user application failed with exit code -1 (refer to stdout/stderr logs for more detail): signal: terminated

I have used App Engine before with no issues, so I’m not sure why this is happening. I used https://github.com/GoogleCloudPlatform/nodejs-docs-samples/tree/main/appengine/typescript as a reference (and cloned this project and deployed) and am still not able to resolve this issue. Any ideas?