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 年前3Celery 2.0 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.Panel.register(): 9.8. 1.0.3 135 Celery Documentation, Release 2.0.3 (stable) from celery.task.control import Panel @Panel.register def reset_broker_connection(panel, **kwargs): panel.listener0 码力 | 165 页 | 492.43 KB | 1 年前3Celery 2.0 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 is done using celery.worker.control.Panel.register(): from celery.task.control import Panel @Panel.register def reset_broker_connection(panel, **kwargs): panel.listener.reset_connection() return0 码力 | 284 页 | 332.71 KB | 1 年前3Celery 2.3 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.consumer.reset_connection() return {"ok": command is done using celery.worker.control.Panel.register(): from celery.task.control import Panel @Panel.register def reset_broker_connection(panel, **kwargs): panel.consumer.reset_connection() return {"ok":0 码力 | 334 页 | 1.25 MB | 1 年前3Celery 2.2 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.consumer.reset_connection() return {"ok": command is done using celery.worker.control.Panel.register(): from celery.task.control import Panel @Panel.register def reset_broker_connection(panel, **kwargs): panel.consumer.reset_connection() return {"ok":0 码力 | 314 页 | 1.26 MB | 1 年前3Celery 2.2 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.consumer.reset_connection() return is done using celery.worker.control.Panel.register(): from celery.task.control import Panel @Panel.register def reset_broker_connection(panel, **kwargs): panel.consumer.reset_connection() return0 码力 | 505 页 | 878.66 KB | 1 年前3Celery 2.3 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.consumer.reset_connection() return is done using celery.worker.control.Panel.register(): from celery.task.control import Panel @Panel.register def reset_broker_connection(panel, **kwargs): panel.consumer.reset_connection() return0 码力 | 530 页 | 900.64 KB | 1 年前3Celery 2.5 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.consumer.reset_connection() return {"ok": command is done using celery.worker.control.Panel.register(): from celery.task.control import Panel @Panel.register def reset_broker_connection(panel, **kwargs): panel.consumer.reset_connection() return {"ok":0 码力 | 400 页 | 1.40 MB | 1 年前3Celery 2.4 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.consumer.reset_connection() return {"ok": command is done using celery.worker.control.Panel.register(): from celery.task.control import Panel @Panel.register def reset_broker_connection(panel, **kwargs): panel.consumer.reset_connection() return {"ok":0 码力 | 395 页 | 1.54 MB | 1 年前3
共 51 条
- 1
- 2
- 3
- 4
- 5
- 6