fix bug when conf1.input ends with '/';
Add job failure redo (only once).