def notification_handler(fn):
 notification_handlers.add(fn)
 return fn

def notification_handler ( fn ) : notification_handlers . add ( fn ) return fn
register a function to be called via celery for every notification .