Added method to job manager for fetching the size of a queue