Closed greschd closed 11 months ago
Hi @greschd , would you happen to know if this could have the same underlying problem as with #3800 or are these completely unrelated?
At a quick glance it seems unrelated - I am having stale daemon PID files when running on WSL, which doesn't have a proper init system (so there is actually no daemon running).
I think the logic to check for stale files just isn't present in verdi process list
.
Confirming this still exists in aiida-core 2.1.2
This should have been fixed in at least v2.4, possibly earlier
The
verdi process list
command has a non-zero exit code when the daemon PID file is stale, because it can not find the number of active workers:Running
verdi daemon status
fixes it:This is a pretty minor thing, but maybe we could add the check for stale PID also in the
verdi process list
code?For some context: The reason I ran into this is because some of my (old,
aiida-pytest
) tests runverdi process list -a
for debugging purposes, which ended up failing.