[PDI-12902] Failed schedule jobs get run twice

Cherry-picks from 5.1