Implementing notify_when for jobs