public List < RemoteTask > getAllTasks ( ) { return tasks . values ( ) . stream ( ) . flatMap ( Set :: stream ) . collect ( toImmutableList ( ) ) ; }
this is used for query info building which should be independent of scheduling work