EU Parliament Monitor — API Documentation - v0.8.45
    Preparing search index...

    Function computeNextProbeAfter

    • Compute the ISO timestamp after which the next probe is due.

      The delay doubles with each attempt (exponential back-off), capped at MAX_BACKOFF_MS:

      • attempt 1 → 24 h
      • attempt 2 → 48 h
      • attempt 3+ → 72 h (capped)

      Parameters

      • fromTime: string

        ISO timestamp used as the reference point (lastProbedAt)

      • attempts: number

        Total probe attempts recorded so far (≥ 1)

      Returns string

      ISO timestamp after which the next probe should be issued