mholiv
mholiv@lemmy.world
Posts
-
Post #966498
That’s because you know cron. If you knew timers equally as well they would be easier. And they let you handle the edge cases (retry, randomness, tracking, logs etc) without the need for a custom script. Once you factor in the production edge cases I think timers are clearly easier. You get all of it for free.
-
Post #966046
I think if you know cron from the start it can be easier, but it gets really annoying really fast. Compare: 0 0 * * * /usr/bin/flock -n /tmp/myjob.lock bash -c 'sleep $((RANDOM % 3600)) && /usr/local/bin/myjob.sh' To: [Timer] OnCalendar=daily RandomizedDelaySec=1h That and things like systemd preventing overlapped delays, handing what to do if the system was down during the last cycle, built in logging and event tracking. Seeing successful vs non successful runs etc....
-
Post #466725
Wait till you learn about avif or jpegxl images! For real though webp is a nice upgrade over png. Smaller and faster to load. I don’t get the hate.