perform queue checking outside the queuing method

Signed-off-by: Sébastien Boisvert <boisvert@anl.gov>