Add the queue name as an optional parameter to isRunning.