• schizo@forum.uncomfortable.business
    link
    fedilink
    English
    arrow-up
    5
    ·
    2 months ago

    I don’t recall exactly, but it’s more like days rather than hours. At some point the instances will mark you as down, and then stop trying to federate with you, so there’s a hard limit but it’s fairly generous and not especially aggressive.

    I found the PR for the queue, and it mentions retries but doesn’t seem to mention exact timing, at least to my quick read. ( https://github.com/LemmyNet/lemmy/pull/3605 )

    • oceanOPA
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 months ago

      Thanks for further details and that PR! Days sounds great. I usually try to fix it within 12 hours or so

      • InEnduringGrowStrong@sh.itjust.works
        link
        fedilink
        arrow-up
        4
        ·
        2 months ago

        Lemmy does exponential backoff with something like this:
        retry_in = min(1.25^retry_count, 24*3600)
        Basically, the timer for the next retry will grow exponentially until it reaches 1 day, then it continues to retry every day.

        By that time, about 5 days will have gone by going through the previous retry failures.

        If will eventually give up and mark as dead but I don’t remember the threshold for that.

        • oceanOPA
          link
          fedilink
          English
          arrow-up
          1
          ·
          2 months ago

          Thanks for the function! Great to know :)