Easy way to get the state history of a task?

I am running into some issues with slow task processing. I have a single actor which has many tasks submitted to it. These tasks may be pretty heavy in terms of IO. I’d like to see how long the task spent waiting for data, deserializing data, processing data, etc. I see that there is a API for listing tasks and their states. Is there an easy way to get a timeline of these states for a given task?

Bonus question:
Right now, I am making multiple calls to the same actor like:

actor.my_method.remote(some_data)

My assumption is that Ray will be smart about this and queue up the data for the next task while the previous task is processing. Is this a good assumption?

1 Like

You can use ray list tasks --detail to see the timestamp of each stage of the task.