Closed danielhollas closed 2 months ago
Oh, I guess there is a timeout somewhere, where verdi tries to communicate with the daemon.
Oh, I guess there is a timeout somewhere, where verdi tries to communicate with the daemon.
That is exactly it. The daemon commands will always try to reach the circus process. If it is not actually running, the command will just hit the timeout at some point. At some point we had a different approach where the command would first check for the PID file that is written when the daemon is started. However, this approach was not always reliable and so we opted to not rely on its existence to decide whether the daemon should be running or not.
Thanks, makes sense. This came up when thinking about speeding up the AiiDAlab container startup, where we stop and later start the Daemon so that we can automatically run verdi storage migrate
.
I guess we could reduce the timeout using the -t
but that seems dangerous and would not by us that much.
I noticed something very strange when looking at the performance of
verdi daemon
command. On my machine, stoping a daemon with 1 worker takes about 1.5 secondHowever, repeating the same command, it suddenly takes twice as long!