Merge _get_job_info and _retrieve_job.

Added a reconnect argument to switch between the behavior.