Home > Software engineering >  Python Script Stops Silently
Python Script Stops Silently

Time:02-10

I'm running Python scripts as child processes, spawned using Nodejs.

When running locally, or locally using Docker / Kubernetes installation, it works as expected and completes all functions in the script. When running the container in Kubernetes Azure, the script silently stops / fails at just under 1 hour, without any exceptions or errors logged.

Memory & CPU usage stays below 30% max, container as a whole doesn't fail. When running ps -fA | grep python I can see the script running after it has been spawned. Script doesn't show anymore after it fails / stops silently. The 'exit' and 'close' events within Nodejs for the spawned processes do not fire.

Any advice on how to troubleshoot would be much appreciated.

Python v 3.7.11 Nodejs v 12.20

CodePudding user response:

  •  Tags:  
  • Related