Skip to content

Commit 0ba5275

Browse files
authored
Merge pull request #6553 from oliver-sanders/doc.comms-timeout
cli: correct --comms-timeout docs
2 parents 95f02cb + e8ce85a commit 0ba5275

File tree

2 files changed

+11
-8
lines changed

2 files changed

+11
-8
lines changed

cylc/flow/option_parsers.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -317,10 +317,13 @@ class CylcOptionParser(OptionParser):
317317
OptionSettings(
318318
['--comms-timeout'], metavar='SEC',
319319
help=(
320-
"Set a timeout for network connections"
321-
" to the running workflow. The default is no timeout."
322-
" For task messaging connections see"
323-
" site/user config file documentation."
320+
"Set the timeout for communication with the running workflow."
321+
" The default is determined by the setup, 5 seconds for"
322+
" TCP comms and 300 for SSH."
323+
" If connections timeout, it likely means either, a complex"
324+
" request has been issued (e.g. cylc tui); there is a network"
325+
" issue; or a problem with the scheduler. Increasing the"
326+
" timeout will help with the first case."
324327
),
325328
action='store', default=None, dest='comms_timeout', useif='comms'),
326329
OptionSettings(

cylc/flow/scripts/tui.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ def get_option_parser() -> COP:
6565
'--comms-timeout',
6666
metavar='SEC',
6767
help=(
68-
"Set a timeout for network connections"
69-
" to the running workflow. The default is 3 seconds."
70-
" For task messaging connections see"
71-
" site/user config file documentation."
68+
# NOTE: Tui overrides the default client timeout
69+
"Set the timeout for communication with the running workflow."
70+
" The default is 3 seconds, uou may need to increase this in"
71+
"order for Tui to keep up with especially busy workflows."
7272
),
7373
action='store',
7474
default=3,

0 commit comments

Comments
 (0)