Added an endpoint to get the status of a job.