Add criticality to the BatchTask and add the ScopedCriticality wrapper to allow testing criticality.
Add criticality to the BatchTask and add the ScopedCriticality wrapper to allow testing criticality.
