rele icon indicating copy to clipboard operation
rele copied to clipboard

Add message.id to insert handler

Open craigmulligan opened this issue 5 years ago • 1 comments

I think #36 is somewhat similar? I have a use case where I'd like to use the message.id in the subscription handler. Currently, data + attributes are passed.

I can probably get around this by using preprocess_message hook to mutate the message.data or message. attributes but I'd prefer not to go that route.

craigmulligan avatar Jan 16 '20 09:01 craigmulligan

Hey @hobochild Yeah unfortunately there is no way atm to access that data. As you mentioned, you could mutate the message data.

I have been toying in my head the possibility of adding an argument which would pass the entire message to the subscriber. It would follow a similar pattern such as celery does with its task handlers.

andrewgy8 avatar Jan 27 '20 08:01 andrewgy8