Add back functionality for retrying failed jobs on the same worker

[#84346198]