Revision 787074d5

b/lib/client/gnt_debug.py
65 65
  op = opcodes.OpTestDelay(duration=delay,
66 66
                           on_master=opts.on_master,
67 67
                           on_nodes=opts.on_nodes,
68
                           repeat=opts.repeat)
68
                           repeat=opts.repeat,
69
                           interruptible=opts.interruptible)
69 70
  SubmitOrSend(op, opts)
70 71

  
71 72
  return 0
......
661 662
                action="append", help="Select nodes to sleep on"),
662 663
     cli_option("-r", "--repeat", type="int", default="0", dest="repeat",
663 664
                help="Number of times to repeat the sleep"),
665
     cli_option("-i", "--interruptible", default=False, dest="interruptible",
666
                action="store_true",
667
                help="Allows the opcode to be interrupted by using a domain "
668
                     "socket"),
664 669
     DRY_RUN_OPT, PRIORITY_OPT] + SUBMIT_OPTS,
665 670
    "[opts...] <duration>", "Executes a TestDelay OpCode"),
666 671
  "submit-job": (
b/man/gnt-debug.rst
46 46
DELAY
47 47
~~~~~
48 48

  
49
**delay** [\--debug] [\--no-master] [-n *NODE*...] {*duration*}
49
**delay** [\--debug] [\--no-master] [\--interruptible] [-n *NODE*...]
50
{*duration*}
50 51

  
51 52
Run a test opcode (a sleep) on the master and on selected nodes
52 53
(via an RPC call). This serves no other purpose but to execute a
......
56 57
for the RPC call. By default, the delay will also be executed on
57 58
the master, unless the ``--no-master`` option is passed.
58 59

  
60
The ``--interruptible`` option allows a running delay opcode to be
61
interrupted by communicating with a special domain socket. If any data
62
is sent to the socket, the delay opcode terminates. If this option is
63
used, no RPCs are performed, but locks are still acquired.
64

  
59 65
The *delay* argument will be interpreted as a floating point
60 66
number.
61 67

  

Also available in: Unified diff