TmuxCommandTimeout
A tmux client invocation exceeded its wall-clock timeout.
Source and package
- Qualified name
-
libtmux.exc. Tmux Command Timeout - Module
- libtmux.exc
- Package
- libtmux
- Source
- src/libtmux/exc.py
-
Description
The spawned tmux client is killed with
SIGKILLand reaped before this exception is raised. Commands already accepted by the tmux server, as well as running panes and the server itself, are not rolled back or stopped. Environment assignments in the formatted message have their values masked to***and control characters escaped onto a single line.Examples
>>> from libtmux import exc>>> err = exc.TmuxCommandTimeout(["tmux", "wait-for", "build-done"], 0.5)>>> err.argv('tmux', 'wait-for', 'build-done')>>> err.cmd['tmux', 'wait-for', 'build-done']>>> err.timeout0.5>>> str(err)'tmux command timed out after 0.5s: tmux wait-for build-done'>>> issubclass(exc.TmuxCommandTimeout, exc.LibTmuxException)True>>> issubclass(exc.TmuxCommandTimeout, TimeoutError)True
Members3 members
- cmd property Return
argvas a mutablelist[str]copy. - __init__ method
- __reduce__ method Serialize
argvandtimeoutacross worker processes.
Inherited members1 member
Reached through libtmux.exc.LibTmuxException.