Waiting for condition without loop Python
<p>I just created a script which triggers a report from  specific API and then loads it into my database.
I have already built something that works but I would like to know if there is something a bit more "precise" or efficient without the need of making my script loop over and over again.</p>

<p>My current script is the following:</p>

<pre><code>import time

retry=1
trigger_report(report_id)

while report_id.status() != 'Complete':
    time.sleep(retry * 1.3)
    retry =+ 1

load_report(report_id)
</code></pre>

<p><strong>EDIT:</strong></p>

<p>The API doesn't provide with any wait for completion methods, the most it has is an endpoint which returns the status of the job.
It is a SOAP API.</p>