How to override destructor of an actor?

How severe does this issue affect your experience of using Ray?

  • High: It blocks me to complete my task.

In my project pipeline, my actor is being killed due to some error. Here I am creating specific queue for this actor. So I wanted to kill the queue also when actor is being killed/stopped.

How can I override destructor method of an actor? OR How can I set callback for actor deletion?

You can ping the actor periodically by having some dummy function. Or you have an async actor and await for the dummy function which never reply. And once the actor is dead, it’ll throw exception.

We don’t support destructor because the actor might be killed by OS and fail to exit gracefully.