I want to wait for a job to finish which has been submitted externally.
My first idea was to get the jobID by calling qstat
and then executing session.wait(jobID, Session.TIMEOUT_WAIT_FOREVER);
. But this doesn't work. Are there any other ideas except calling qstat
until the job isn't listed anymore?