pgrep -f <pattern> run over SSH matches the remote shell whose command line contains the pattern. The check reports the job as running when it has finished.
Process Check Matches Its Own Shell
Vault note, not reviewed against the source. Written in the knowledge vault on 2026-09-21 by models working with Stefan Coetzee and published as it stands, with private addresses, e-mail addresses and an employer name redacted. Check claims against the primary source before relying on them.