The queue ID should be saved in the HDF5 file, so we can look up the queue ID to check if the job is still waiting in the queue.