added support for restarting jobs with delays