mod. switch view logic to catch queued or running jobs before checking cache.

Change-Id: I3f57123f18f66bf3b057080553d3d2cecc0ba7b7