def pool_restart(self, modules=None, reload=False, reloader=None, destination=None, **kwargs):
    'Restart the execution pools of all or specific workers.\n\n        Keyword Arguments:\n            modules (Sequence[str]): List of modules to reload.\n            reload (bool): Flag to enable module reloading.  Default is False.\n            reloader (Any): Function to reload a module.\n            destination (Sequence[str]): List of worker names to send this\n                command to.\n\n        See Also:\n            Supports the same arguments as :meth:`broadcast`\n        '
    return self.broadcast('pool_restart', arguments={'modules': modules, 'reload': reload, 'reloader': reloader}, destination=destination, **kwargs)
Restart the execution pools of all or specific workers.

Keyword Arguments:
    modules (Sequence[str]): List of modules to reload.
    reload (bool): Flag to enable module reloading.  Default is False.
    reloader (Any): Function to reload a module.
    destination (Sequence[str]): List of worker names to send this
        command to.

See Also:
    Supports the same arguments as :meth:`broadcast`
def pool_restart(self, modules=None, reload=False, reloader=None, destination=None, **kwargs):
    'Restart the execution pools of all or specific workers.\n\n        Keyword Arguments:\n            modules (Sequence[str]): List of modules to reload.\n            reload (bool): Flag to enable module reloading.  Default is False.\n            reloader (Any): Function to reload a module.\n            destination (Sequence[str]): List of worker names to send this\n                command to.\n\n        See Also:\n            Supports the same arguments as :meth:`broadcast`\n        '
    return self.broadcast('pool_restart', arguments={'modules': modules, 'reload': reload, 'reloader': reloader}, destination=destination, **kwargs)