Module Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Str If CompareEq NameLoad Str body Assign NameStore ListLoad Call AttributeLoad NameLoad attr NameLoad SubscriptLoad NameLoad Index Str orelse Assign NameStore Call AttributeLoad SubscriptLoad NameLoad Index Str attr If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Raise Call NameLoad BinOpMod Str NameLoad Assign NameStore ListComp NameLoad comprehension NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If UnaryOpNot NameLoad body Raise Call NameLoad BinOpMod Str SubscriptLoad NameLoad Index Str If CompareEq Call NameLoad NameLoad Num body If Call AttributeLoad NameLoad attr Str body Assign NameStore Call NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Num NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad Expr Call AttributeLoad NameLoad attr Lambda arguments args NameParam defaults Dict Str NameLoad Return NameLoad Return Call Call NameLoad SubscriptLoad NameLoad Index Num NameLoad FunctionDef arguments args NameParam defaults NameLoad body Return Call NameLoad NameLoad keyword Lambda arguments args NameParam defaults AttributeLoad NameLoad attr keyword NameLoad decorator_list Return Call NameLoad keyword NameLoad orelse Return Call NameLoad decorator_list Assign NameStore TupleLoad Str Str Str Str ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore Call NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body If CompareGt Call NameLoad NameLoad Num body Raise Call NameLoad Str If CompareEq Call NameLoad NameLoad Num body Return Call AttributeLoad NameLoad attr keyword SubscriptLoad NameLoad Index Num NameLoad Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Return Call NameLoad NameLoad NameLoad NameLoad Str AttributeLoad NameLoad attr Call NameLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list decorator_list
N/A N/A re N/A fnmatch functools partial circus.commands.base Command circus.exc ArgumentError MessageError circus.util TransformableFuture execute_watcher_start_stop_restart N/A N/A command arbiter props watcher_function_name watchers_function arbiter_function N/A N/A N/A base function to handle start/stop/restart watcher requests.
    since this is always the same procedure except some function names this
    function handles all watcher start/stop commands
     N/A N/A name props N/A N/A match N/A N/A props get match glob N/A N/A match simple N/A N/A watchers N/A N/A N/A command _get_watcher arbiter N/A props N/A name N/A N/A watcher_name N/A N/A N/A props N/A name lower N/A N/A match glob N/A N/A name N/A N/A re compile N/A N/A fnmatch translate watcher_name N/A N/A N/A match regex N/A N/A name N/A N/A re compile watcher_name N/A N/A N/A MessageError N/A unknown match method %s match N/A watchers N/A watcher N/A watcher N/A N/A arbiter iter_watchers N/A N/A name match N/A N/A N/A watcher name lower N/A N/A watchers N/A N/A N/A MessageError N/A program %s not found N/A props N/A name N/A N/A N/A len watchers 1 N/A N/A N/A N/A props get waiting N/A N/A resp N/A TransformableFuture N/A func N/A getattr N/A watchers N/A 0 watcher_function_name N/A N/A N/A resp set_upstream_future N/A func N/A N/A N/A resp set_transform_function N/A N/A N/A x N/A N/A info x N/A resp N/A N/A N/A getattr N/A watchers N/A 0 watcher_function_name watcher_iter_func N/A N/A reverse N/A True N/A N/A N/A sorted watchers key N/A N/A N/A a N/A N/A a priority reverse reverse N/A N/A N/A watchers_function watcher_iter_func watcher_iter_func N/A N/A N/A arbiter_function N/A N/A match_options N/A match match glob Watcher name matching method (simple, glob or regex) Restart N/A Command N/A N/A         Restart the arbiter or a watcher
        ================================

        This command restart all the process in a watcher or all watchers. This
        funtion simply stop a watcher then restart it.

        ZMQ Message
        -----------

        ::

            {
                "command": "restart",
                "properties": {
                    "name": "<name>",
                    "waiting": False,
                    "match": "[simple|glob|regex]"
                }
            }

        The response return the status "ok".

        If the property name is present, then the reload will be applied
        to the watcher.

        If ``waiting`` is False (default), the call will return immediately
        after calling `stop_signal` on each process.

        If ``waiting`` is True, the call will return only when the restart
        process is completely ended. Because of the
        :ref:`graceful_timeout option <graceful_timeout>`, it can take some
        time.

        The ``match`` parameter can have the value ``simple`` for string
        compare, ``glob`` for wildcard matching (default) or ``regex`` for
        regex matching.


        Command line
        ------------

        ::

            $ circusctl restart [name] [--waiting] [--match=simple|glob|regex]

        Options
        +++++++

        - <name>: name or pattern of the watcher(s)
        - <match>: watcher match method
     N/A name restart N/A options N/A list N/A Command waiting_options N/A N/A N/A options append match_options message N/A N/A self N/A args opts N/A N/A N/A N/A len args 1 N/A N/A N/A ArgumentError Invalid number of arguments N/A N/A N/A len args 1 N/A N/A N/A N/A self make_message name N/A args N/A 0 opts N/A N/A N/A self make_message opts N/A execute N/A N/A self arbiter props N/A N/A N/A N/A execute_watcher_start_stop_restart self arbiter props restart N/A arbiter restart N/A partial N/A arbiter restart inside_circusd True N/A N/A