Delay on job failure

add delay_on_failure param allowing to delay a job in case of job failure