-
Notifications
You must be signed in to change notification settings - Fork 214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI: Add --timeout
option for verdi daemon start
and verdi daemon stop
#5928
CLI: Add --timeout
option for verdi daemon start
and verdi daemon stop
#5928
Conversation
Thanks @AhmedBasem20 for the contribution (again!) However, I think the implementation here requires more discussion. From my experience as a user, I never encounter issue with aiida-core/aiida/engine/daemon/client.py Line 462 in 0bc8ef0
As for the timeout of daemon_client, it is already a configurable parameter get by config.get_option('daemon.timeout') (see: aiida-core/aiida/engine/daemon/client.py Line 86 in 0bc8ef0
My question here for @sphuber is whether the timeout of |
Hi @unkcpz thanks. I added an option for |
Thanks @AhmedBasem20 and @unkcpz . To provide some context, the Now, for command = {'command': 'quit', 'properties': {'waiting': wait}}
result = self.call_client(command) already handles this for us, i.e., does this only return when the daemon is actually stopped (or otherwise it times out). If that is the case, then our second layer of checking is not even necessary and we may best just get rid of it. And in that case, we should probably also just use the I am not sure how to test the behavior of the |
Thanks @sphuber. I tried to figure out the behavior of the |
@sphuber is this PR superseded by your recent work? |
Not quite yet, but it is a necessary pre-cursor to make the code clearer as to which timeouts there are and which need to be exposed on the CLI. I will come back to this, once those other PRs are merged but don't have the time to finalize them now |
Thanks for the PR @AhmedBasem20 . Since the code has changed after fixing the DaemonClient, there were conflicts here. Since we are releasing v2.3 early next week and so there is not much time, I went ahead and created #5966 to replace this PR. Hope you don't mind. |
Thank you for getting back @sphuber. No problems at all. It's great that you figured out and solved that issue in the last two PRs! |
Fixes #5637
Made the timeouts for
DaemonClient
configurable via two CLI options forverdi daemon start
andverdi daemon stop
.I'm not sure about the testing approach here so I'll be waiting for the review.
Thanks.