Skip to content

Exttrig dev

Shaon Ghosh requested to merge shaon.ghosh/gwcelery:exttrig_dev into master

This merge request has the code that will listen to gcn alerts from Fermi, Swift and SNEWS for GRBs and then send the alert to the gracedb as external trigger events.

  1. It introduces a new code called the external_triggers.py which provided the handler function for the external triggers from Fermi, Swift and SNEWS.

  2. This is completely VOEventLib independent.

  3. In this version you will also find some changes in the gracedb.py code which introduces two new functions, get_events and replace_event which will allow the external_triggers.py code to access gracedb entries through the celery infrastructure.

  4. The external_trigger.py code itself does not discriminate between alerts and all alerts will be processed. However, when running via celery the code will only be triggered for specific Notice_Types (see decorations to the handler function)

  5. There is no writing of events into the disk.

  6. gracedb client has a minor bug. I fixed that by changing where urllib.urlencode is called to urllib.parse.urlencode. This change will be needed for Python3.

  7. A dedicated queue for the handler function is being created to deal with race condition between create_event and replace_event.

Edited by Leo P. Singer

Merge request reports