Python Dramatiq - Accessing message id from actor method

223 Views Asked by At

How can I access message id from within the actor method? I want to see which id is getting processed for logging purpose

@dramatiq.actor
def fn(x, y):
    # log the message id
    return x+y
0

There are 0 best solutions below