Reference

idm_broker.apps (notifications for model changes)

class idm_broker.apps.IDMBrokerConfig(*args, **kwargs)[source]
name = 'idm_broker'
ready()[source]
register_notification(*, serializer: rest_framework.serializers.BaseSerializer, exchange, model=None, renderer: rest_framework.renderers.BaseRenderer = <class 'rest_framework.renderers.JSONRenderer'>)[source]
register_notifications(registrations)[source]

idm_broker.consumer (consuming tasks into celery tasks)

class idm_broker.consumer.BrokerTaskConsumer[source]

A kombu kombu.mixins.ConsumerMixin that consumes from queues declared in settings.IDM_BROKER['CONSUMERS'], and dispatches each message received to one or more configured celery tasks.

classmethod get_callback(task_name)[source]
get_consumers(Consumer, channel)[source]
on_consume_ready(connection, channel, consumers, **kwargs)[source]
ready = None
run(_tokens=1, **kwargs)[source]