Celery 2.1 Documentation
Writing your own remote control commands Remote control commands are registered in the control panel and they take a single argument: the current ControlDispatch instance. From there you have access connection: from celery.worker.control import Panel @Panel.register def reset_connection(panel): panel.logger.critical("Connection reset by remote control.") panel.listener.reset_connection() return control.ControlDispatch(logger=None, hostname=None, listener=None) Execute worker control panel commands. class Panel(logger, listener, hostname=None) data = {'stats':, 'revoke': 0 码力 | 463 页 | 861.69 KB | 1 年前3Celery 2.1 Documentation
Writing your own remote control commands Remote control commands are registered in the control panel and they take a single argu- ment: the current ControlDispatch instance. From there you have access connection: from celery.worker.control import Panel @Panel.register def reset_connection(panel): panel.logger.critical("Connection reset by remote control.") panel.listener.reset_connection() return {"ok": control.ControlDispatch(logger=None, hostname=None, listener=None) Execute worker control panel commands. class Panel(logger, listener, hostname=None) data = {‘stats’:, ‘revoke’: 0 码力 | 285 页 | 1.19 MB | 1 年前3PyWebIO v1.6.1 Documentation
give you more control to session. • Use set_env() to configure the title, page appearance, input panel and so on for current session. • The info object provides a lot information about the current session HTTP connection. • input_panel_fixed (bool): Whether to make input panel fixed at bottom, enabled by default • input_panel_min_height (int): The minimum height of input panel (in pixel, default 300px) only when input_panel_fixed=True • input_panel_init_height (int): The initial height of input panel (in pixel, default 300px), it should be larger than 175px. Available only when input_panel_fixed=True •0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.2 Documentation
give you more control to session. • Use set_env() to configure the title, page appearance, input panel and so on for current session. • The info object provides a lot information about the current session HTTP connection. • input_panel_fixed (bool): Whether to make input panel fixed at bottom, enabled by default • input_panel_min_height (int): The minimum height of input panel (in pixel, default 300px) only when input_panel_fixed=True • input_panel_init_height (int): The initial height of input panel (in pixel, default 300px), it should be larger than 175px. Available only when input_panel_fixed=True •0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.4.0 Documentation
give you more control to session. • Use set_env() to configure the title, page appearance, input panel and so on for current session. • The info object provides a lot information about the current session HTTP connection. • input_panel_fixed (bool): Whether to make input panel fixed at bottom, enabled by default • input_panel_min_height (int): The minimum height of input panel (in pixel, default 300px) only when input_panel_fixed=True • input_panel_init_height (int): The initial height of input panel (in pixel, default 300px), it should be larger than 175px. Available only when input_panel_fixed=True •0 码力 | 102 页 | 1.35 MB | 1 年前3PyWebIO v1.6.2 Documentation
give you more control to session. • Use set_env() to configure the title, page appearance, input panel and so on for current session. • The info object provides a lot information about the current session HTTP connection. • input_panel_fixed (bool): Whether to make input panel fixed at bottom, enabled by default • input_panel_min_height (int): The minimum height of input panel (in pixel, default 300px) only when input_panel_fixed=True • input_panel_init_height (int): The initial height of input panel (in pixel, default 300px), it should be larger than 175px. Available only when input_panel_fixed=True •0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.0 Documentation
give you more control to session. • Use set_env() to configure the title, page appearance, input panel and so on for current session. • The info object provides a lot information about the current session HTTP connection. • input_panel_fixed (bool): Whether to make input panel fixed at bottom, enabled by default • input_panel_min_height (int): The minimum height of input panel (in pixel, default 300px) only when input_panel_fixed=True • input_panel_init_height (int): The initial height of input panel (in pixel, default 300px), it should be larger than 175px. Available only when input_panel_fixed=True •0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.5.1 Documentation
give you more control to session. • Use set_env() to configure the title, page appearance, input panel and so on for current session. • The info object provides a lot information about the current session HTTP connection. • input_panel_fixed (bool): Whether to make input panel fixed at bottom, enabled by default • input_panel_min_height (int): The minimum height of input panel (in pixel, default 300px) only when input_panel_fixed=True • input_panel_init_height (int): The initial height of input panel (in pixel, default 300px), it should be larger than 175px. Available only when input_panel_fixed=True •0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.6.3 Documentation
give you more control to session. • Use set_env() to configure the title, page appearance, input panel and so on for current session. • The info object provides a lot information about the current session HTTP connection. • input_panel_fixed (bool): Whether to make input panel fixed at bottom, enabled by default • input_panel_min_height (int): The minimum height of input panel (in pixel, default 300px) only when input_panel_fixed=True • input_panel_init_height (int): The initial height of input panel (in pixel, default 300px), it should be larger than 175px. Available only when input_panel_fixed=True •0 码力 | 108 页 | 1.37 MB | 1 年前3PyWebIO v1.6.0 Documentation
give you more control to session. • Use set_env() to configure the title, page appearance, input panel and so on for current session. • The info object provides a lot information about the current session HTTP connection. • input_panel_fixed (bool): Whether to make input panel fixed at bottom, enabled by default • input_panel_min_height (int): The minimum height of input panel (in pixel, default 300px) only when input_panel_fixed=True • input_panel_init_height (int): The initial height of input panel (in pixel, default 300px), it should be larger than 175px. Available only when input_panel_fixed=True •0 码力 | 108 页 | 1.37 MB | 1 年前3
共 292 条
- 1
- 2
- 3
- 4
- 5
- 6
- 30