Skip to content

Commit d0dedc1

Browse files
authored
Transport: set non-interactive default for --safe-interval (#6943)
This commit sets the already existing default value for --safe-interval as also non-interactive default. At the same time, we reduce the value from 30 sec. to 15 seconds. This was long discussed in other issues, see for example #6599 and #6544 there was a debate between 5.0 seconds or 3.0 seconds. Either way, those discussion can keep going, meanwhile we reduce here from 30.0 to 15.0 seconds. This should not hurt anybody..
1 parent b4e1c8b commit d0dedc1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/aiida/transports/transport.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ class Transport(abc.ABC):
6969

7070
# This is used as a global default in case subclasses don't redefine this,
7171
# but this should be redefined in plugins where appropriate
72-
_DEFAULT_SAFE_OPEN_INTERVAL = 30.0
72+
_DEFAULT_SAFE_OPEN_INTERVAL = 15.0
7373

7474
# To be defined in the subclass
7575
# See the ssh or local plugin to see the format
@@ -100,6 +100,8 @@ class Transport(abc.ABC):
100100
'prompt': 'Connection cooldown time (s)',
101101
'help': 'Minimum time interval in seconds between opening new connections.',
102102
'callback': validate_positive_number,
103+
'default': _DEFAULT_SAFE_OPEN_INTERVAL,
104+
'non_interactive_default': True,
103105
},
104106
),
105107
]

0 commit comments

Comments
 (0)