• partial_accumen@lemmy.world
    link
    fedilink
    arrow-up
    1
    ·
    4 months ago

    My RPi uptime on one project will never exceed 4 hours.

    I’ve got a cron job set to reboot my Raspberry Pi every 4 hours because I wrote a crappy Python app that continuously creates objects during operation that I would have to recreate, but I can’t delete the originals, or rather, I can delete the original parent but the child survives and keeps its memory allocation. So a full reboot with autolaunch of the application on boot is my ugly janky workaround. Its a cosmetic application, nothing critical. Its just a colorful display of data metrics.

    I can hear the horror and gnashing of teeth of real developers as they read this.

    • ozymandias117@lemmy.world
      link
      fedilink
      English
      arrow-up
      3
      ·
      edit-2
      4 months ago

      As a real developer…

      I just remember that airplanes have “reboot the plane every 51 days” to prevent an overflow from crashing the plane in their maintenance manuals

      So, like, yours can be improved, but it’s not safety critical like other reboot requirements…

    • shalafi@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      4 months ago

      I’m a sysadmin and I’m weeping, gnashing my teeth and rending my garments. 😆 And I’ve never done anything janky like that. Ever.

    • fayoh@sopuli.xyz
      link
      fedilink
      arrow-up
      2
      ·
      4 months ago

      You just lack imagination. Some hikvision security cameras (the large, very expensive enterprisey ones) restart every couple of days due to “buildup of cosmic radiation”.

      No matter how competent you are as a developer, there is no escaping cosmic radiation! 😉