;; 99% of the time by the time this is called `.getJobComplete` will return `true`. On the off chance it doesn't, wait a few seconds for the job to finish.
([^QueryResponseresponse]
(post-process-nativeresponse5)); wait up to 5 seconds for `.getJobComplete` to return `true`
(post-process-nativeresponse10)); wait up to 10 seconds for `.getJobComplete` to return `true`
([^QueryResponseresponse,^Integertimeout-seconds]
(when-not(.getJobCompleteresponse)
(when(zero?timeout-seconds); if we've ran out of wait time throw an exception
(throw(Exception.(str(.getErrorsresponse)))))
(Thread/sleep1000); otherwise sleep a second, try again, and decrement the remaining `timeout-seconds`
(when(zero?timeout-seconds); if we've ran out of wait time throw an exception