Coverage for gwcelery/kafka/__init__.py: 100%
3 statements
« prev ^ index » next coverage.py v7.4.4, created at 2024-11-14 05:52 +0000
« prev ^ index » next coverage.py v7.4.4, created at 2024-11-14 05:52 +0000
1"""Embed a Kafka producer into a Celery worker by
2:doc:`extending Celery with bootsteps <celery:userguide/extending>`.
3"""
4from .bootsteps import Consumer, Producer
7def install(app):
8 """Register the Kafka subsystem in the application boot steps."""
9 app.steps['consumer'] |= {Producer, Consumer}