Closed mbercx closed 5 months ago
I tried to solve this issue , there I noticed
TIMEOUT = OverridableOption(
'-t',
'--timeout',
type=click.FLOAT,
default=5.0,
show_default=True,
help='Time in seconds to wait for a response before timing out.',
)
default is already 5.0 should it be increased to 10??
and I feel this change has to be made
If there are any mistakes in the code I provided, please let me know so I can fix them.
This option is now deprecated and will be removed so I am going to close this
Thanks @sphuber. I see the --timeout
flag was removed in https://github.com/aiidateam/aiida-core/commit/8ac6424108d1528bd3279c81da62dd44855b6ebc, since apparently it only had an effect on the "soft" restart mode (i.e. keep the process and restart the workers). But wouldn't we want to have a timeout option for the "hard" restart mode as well?
Could have done, since verdi daemon stop
takes the --timeout
option, but don't think it is that important to be honest
Describe the bug
I'm running into the following:
The message is pretty clear that it's also possible that the daemon started but is simply unresponsive, but I would expect that it waits for 20 seconds due to the
--timeout
settingI then configured the default
timeout
to 20 seconds and all was well:Expected behavior
So two suggested action points would be:
--timeout
not being used properly, unless I misunderstand it's purpose?Your environment
Context
Originally raised in #3800