
Stop BirdNET worker processes that were left behind
Source:R/birdnet_cleanup.R
pam_birdnet_cleanup.RdInterrupting a run (Esc) or a crash can leave the worker processes of the
Python birdnet package running in the background, holding memory (about
260 MB each). This finds those orphans and stops them. A worker counts as an
orphan only if the process that started it no longer exists, so workers of a
run that is still going are never touched.
Value
Invisibly, a data.frame with pid, name, parent_pid and killed
(zero rows if there were no orphans).
Details
pam_detect() and the training functions call this automatically
(after an interrupt, and before a run starts), so you rarely need it.