How to find actor information


#1

Hi,

Suppose I have this actor:

@dramatiq.actor()
def do_something(x, y):
    id_ = … # How to get access to ‘self’ here?
    print(f"My uuid is {id_}")

How can I access actor related data from within the actor?

Thanks!


#2

There is currently no built-in way to “bind” a message to an actor like that. What’s your use case here?


#3

Mainly logging using the id, but I guess the [Thread-5] [dramatiq.worker.WorkerThread] would be sufficient?