improve the scheduling queue code base

Link: https://github.com/GeneAssembly/biosal/issues/419
Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>