emit event 'job failed attempt' after updating job