QutEcoacoustics / baw-server

The acoustic workbench server for storing and managing ecoacoustic data. Manages the structure and audio data. Provides an API for clients access.
Apache License 2.0
9 stars 4 forks source link

BawAudioTools::Exceptions::AudioToolTimedOutError leaves zombie processes behind #667

Open atruskie opened 11 months ago

atruskie commented 11 months ago

When BawAudioTools::Exceptions::AudioToolTimedOutError is raised the process runner is meant to clean up child processes.

Instead they're left behind as zombie processes.

The following code does not seem to be working:

https://github.com/QutEcoacoustics/baw-server/blob/349ff8d284eb7624d94a035a94bcdaca55525889/lib/gems/baw-audio-tools/lib/baw_audio_tools/run_external_program.rb#L122-L126

Samples taken from a recent incident on a server:

image

$ ps -aux | grep "<defunct>" | wc -l
3828