drupflare/worker - v1.0.0
    Preparing search index...

    Function attemptBudget

    • How many times a queued request may be attempted, in total.

      A POST GETS EXACTLY ONE ATTEMPT. The existing GET drain retries three times, which is correct for a GET and is a live defect for a POST: a reCAPTCHA token is single-use, so a retried verification is rejected by Google as already-redeemed and the visitor is told they failed a captcha they passed. Worse, the retry is invisible -- the first attempt may well have SUCCEEDED at the far end and only failed to return, so retrying converts a network blip into a definite rejection.

      One attempt means a failure is reported as a failure rather than laundered into a wrong answer.

      Parameters

      • method: string

      Returns number