presto-main/src/main/java/io/prestosql/execution/TaskManager.java/TaskManager/addStateChangeListener
class TaskManager:    void addStateChangeListener(TaskId taskId, StateChangeListener<TaskState> stateChangeListener);