Hi, I faced an issue with the Cloud Run Job, for some reason it exit with ''Container called exit(0)" when execution is not completed yet.
Resource utilization normal (no more than 50%), setup 16GB RAM, 8CPUs
Job timeout set to 168h. (execution before exit less than 3h)
No errors, no crashes, no 5** HTTP codes.
Job execute crawling and this issue is faced only with one website.
HTTP codes while crawling (200, 403, 429)
What can trigger container exit, I checked the documentation and every possible case for termination does not correspond to this.
How can I control container exit? Is it possible to exit in case some log is generated?
How to fix this issue?
Hi @devsol,
It looks like your Cloud Run Job might be stopping because of some hidden conditions in your crawling code, how it's handling certain HTTP errors, or a timeout that's kicking in earlier than expected. Here are some workarounds that may help resolve the problem:
If the workarounds above don't work, you can contact Google Cloud Support for a more in-depth analysis. When contacting them, please provide comprehensive details and include screenshots. This will help them better understand and address your issue.
Was this helpful? If so, please accept this answer as “Solution”. If you need additional assistance, reply here within 2 business days and I’ll be happy to help.