Revert "Removing jobs from processing queue starting from the head"

This reverts commit b1dce5d4dcfcd5ed747829955a6ab30435f43012.