fixed delayed job promotion issues.

Hi, I've fixed following issues.
1. emitting promotion event to wrong jobs.
2. deleting a job when the job is promoting.