GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    pelavarre (pelavarre@social.vivaldi.net)'s status on Monday, 13-Nov-2023 12:08:29 JSTpelavarrepelavarre
    in reply to
    • Paul Cantrell
    • Shriram Krishnamurthi

    @shriramk @inthehands

    > all far beyond even basic error-*catching*, much less *handling*!

    should our everyone-learns goals for writing distributed Code include a form of retries?

    me, the wheel i reinvented this morning is

    r = requests_get_after_some_sleeps(address, sleeps=(0, 0, 60))

    for me this says to try for the first time after 0 sleep, quit if happy else try a second time after 0 sleep, quit if happy else sleep for 60s and then try a third time, quit if happy else forget about it, give up, let that last unhandled Exception raise you out of here no matter if it's the same or different than the others

    i'm then strongly feeling like i should've been taught this form of speech - but i sure wasn't

    got thoughts?

    In conversationMonday, 13-Nov-2023 12:08:29 JST from social.vivaldi.netpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.