Query the server for the latest job status.
This method is not designed to be invoked repeatedly in a loop for an extended period of time. Doing so may cause the server to reject your request. Use
wait_for_final_state()if you want to wait for the job to finish.
If the job failed, you can use
error_message()to get more information.