fixed ES retry for failed jobs