;; 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-nativeresponse10)); wait up to 10 seconds for `.getJobComplete` to return `true`
(post-process-nativeresponse15))
([^QueryResponseresponse,^Integertimeout-seconds]
(when-not(.getJobCompleteresponse)
(when(zero?timeout-seconds); if we've ran out of wait time throw an exception
;; There is a weird error where everything that *should* be NULL comes back as an Object. See https://jira.talendforge.org/browse/TBD-1592
;; Everything else comes back as a String luckily so we can proceed normally.
(when-not(=(classv)Object)
(parserv)))))})))
(if-not(.getJobCompleteresponse)
;; 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.