Exposing function to retrieve the next invocation of a job