hub: Add functions to query job lists.