presto-main/src/main/java/io/prestosql/execution/executor/TaskExecutor.java/TaskExecutor/getTasks
class TaskExecutor:    @Managed
    public synchronized int getTasks()
    {
        return tasks.size();
    }