Fixed pending task querying for provisioner