Revision 0d1e78dd lib/build/rpc_definitions.py
b/lib/build/rpc_definitions.py | ||
---|---|---|
37 | 37 |
""" |
38 | 38 |
|
39 | 39 |
|
40 |
# Various time constants for the timeout table |
|
40 |
# Guidelines for choosing timeouts: |
|
41 |
# - call used during watcher: timeout of 1min, _TMO_URGENT |
|
42 |
# - trivial (but be sure it is trivial) (e.g. reading a file): 5min, _TMO_FAST |
|
43 |
# - other calls: 15 min, _TMO_NORMAL |
|
44 |
# - special calls (instance add, etc.): either _TMO_SLOW (1h) or huge timeouts |
|
41 | 45 |
TMO_URGENT = 60 # one minute |
42 | 46 |
TMO_FAST = 5 * 60 # five minutes |
43 | 47 |
TMO_NORMAL = 15 * 60 # 15 minutes |
Also available in: Unified diff