Added support for noRetriesLeft on the job query.

Added support for noRetriesLeft on the job query (see Job.xml).