pan><span class="p">(</span><span class="bp">self</span><span class="p">):</span>
        <span class="c1"># It is possible for a payload to come up faster than the service. Loop a few times</span>
        <span class="c1"># to give it time to come up.</span>
        <span class="n">MAX_ATTEMPTS</span> <span class="o">=</span> <span class="mi">45</span>
        <span class="n">SECS_PER_ATTEMPT</span> <span class="o">=</span> <span class="mi">2</span>
        <span class="n">num_attempts</span> <span class="