Coverage for gwcelery/voevent/signals.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"""Definitions of custom :doc:`Celery signals <celery:userguide/signals>`
2related to VOEvents.
4These signals allow us to keep the VOEvent broker code decoupled from any
5GCN-specific logic. Notably, it allows us to keep all of the details of
6the GCN-specific "Notice Type" concept out of :mod:`gwcelery.voevent`.
7"""
8from celery.utils.dispatch import Signal
10voevent_received = Signal(
11 name='voevent_received', providing_args=('xml_document',))
12"""Fired whenever a VOEvent is received.
14Parameters
15----------
16xml_document : :class:`comet.utility.xml.xml_document`
17 The XML document that was received. The raw file contents are available as
18 ``xml_document.raw_bytes``. The ``lxml.etree`` representation of the
19 document is available as ``xml_document.element``.
20"""