İçeriğe atla
0
  • Ders Ara
  • Ana Sayfa
  • Kategoriler
    • All Categories
      • Individual Categories
    • Gruplar
    • Okunmamış 0
    • Güncel
    • Kullanıcılar
    • Hakkımızda
    • Öğrenci Fırsatları
    • Akademik Takvim
    • CV oluşturucu
    • IEU Timetable
    • Devamsızlık App
    • IEU GPA Hesaplayıcı
    • Niki Cüzdan
    • Ders Ara
    • Ana Sayfa
    • Kategoriler
      • All Categories
        • Individual Categories
      • Gruplar
      • 0 Okunmamış 0
      • Güncel
      • Kullanıcılar
      • Hakkımızda
      • Öğrenci Fırsatları
      • Akademik Takvim
      • CV oluşturucu
      • IEU Timetable
      • Devamsızlık App
      • IEU GPA Hesaplayıcı
      • Niki Cüzdan
      Daralt
      IEU Forum – İzmir Ekonomi Üniversitesi Öğrenci Topluluğu Platformu

      IEU Forum

      -- çevrimiçi
      1. Ana Sayfa
      2. Programming
      3. Logging cron job output vs actually monitoring it

      Final Unicourse'tan Çalış, Yüksek Notu Garantile!

      %25 İndirim Kodu: FRM25
      Yükleniyor...
      Dersi İzle
      GÖRÜNTÜLEYENLER
      +36
      Premium Özellik
      Bu konuyu kimlerin görüntülediğini görmek için Premium üyelik gerekir.
      Premium'a Geç

      Vizesine Unicourse'tan Çalış, Yüksek Notu Garantile!

      A B C D Çıkmış Sorular Formül Kağıtları Konu Anlatımı Sınav İpuçları Örnek Sınav
      Dersi İzle
      YENİ ÖZELLİK

      Bi'Öğrenci Fırsatları
      Forum'da!

      Bi'Öğrenci ile artık forum üzerinden en güncel indirimlere, anlık fırsatlara ve avantajlı tekliflere ulaşabilirsin.

      FIRSATLARI KEŞFET
      Red Bull Basement
      SPONSORLU ETKİNLİK

      Fikrini Gerçeğe Dönüştür

      Projeni dünyaya göstermek için sahne hazır. Red Bull Basement başvuruları açık.

      Başvurunu Yap

      🎉 Foruma Yeni Özellik Geldi!

      Sizin için PDF toollarını getirdik!

      İncele ve Kullan

      Logging cron job output vs actually monitoring it

      Konu Zamanlandı Sabitlendi Kilitli Taşındı Programming
      programming
      1 İleti 1 Yayımlayıcılar 1 Bakış
      • En eskiden en yeniye
      • En yeniden en eskiye
      • En çok oylanan
        Cevap
        • Yeni başlık oluşturarak cevapla
        Cevaplamak için giriş yapın
        Bu başlık silindi. Sadece başlık düzenleme yetkisi olan kullanıcılar görebilir.
        • I This user is from outside of this forum
          I This user is from outside of this forum
          indidev@lemmy.world
          yazdı Son düzenleyen:
          #1

          Been running a handful of scheduled tasks on two VPS instances for about a year now — nightly DB dumps, cache warmers, a couple of data sync scripts. Had everything piped to log files and thought I was covered.

          Then last month one of the sync scripts started hanging mid-execution. It never crashed, never threw an error, just... sat there. The log showed the start timestamp but no finish line. Took me four days to notice because I wasn't checking logs daily (who does).

          After that I looked into what people use to catch this kind of thing.

          What I tried:

          Healthchecks.io — solid, does the job. You curl a URL at the end of your cron and if the ping doesn't arrive within the expected window, you get an alert. Simple concept.

          I also tested WatchCron which works on the same principle but felt a bit snappier to set up for multiple jobs. Has a dashboard that shows timing patterns across runs, which helped me spot that one of my backup jobs was gradually taking longer each week — would've missed that with just pass/fail alerts.

          The pattern that works for me now:

          #!/bin/bash
          # at the end of each cron script
          curl -fsS -m 10 --retry 3 $MONITOR_URL > /dev/null
          

          If the script hangs or exits early, the ping never fires, and I get a Slack notification within minutes.

          One thing I changed — I stopped redirecting cron output to /dev/null. Feels obvious in hindsight but I see it everywhere in tutorials. If your task does fail, you want that output in the mail spool or a log, not gone.

          What's your setup for catching silent failures? Curious if anyone's doing something beyond the "ping on success" model — like tracking execution duration or exit codes.

          1 Cevap Son cevap
          1

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Kayıt Ol Giriş
          Cevap
          • Yeni başlık oluşturarak cevapla
          Cevaplamak için giriş yapın
          • En eskiden en yeniye
          • En yeniden en eskiye
          • En çok oylanan


            Önerilen Başlıklar

            • codeinabox@programming.devC

              Beyond Lambdas: Raising the Abstraction Level of Functional Code

              Takip ediliyor Susturulmuş Konu Zamanlandı Sabitlendi Kilitli Taşındı Programming programming
              1
              1
              1 Oy
              1 İleti
              0 Bakış
              Kimse yanıtlamadı
            • codeinabox@programming.devC

              You have to beat the models at something

              Takip ediliyor Susturulmuş Konu Zamanlandı Sabitlendi Kilitli Taşındı Programming programming
              1
              1 Oy
              1 İleti
              0 Bakış
              Kimse yanıtlamadı
            • codeinabox@programming.devC

              Five Programming Books That Changed How I Think

              Takip ediliyor Susturulmuş Konu Zamanlandı Sabitlendi Kilitli Taşındı Programming programming
              1
              1
              1 Oy
              1 İleti
              1 Bakış
              Kimse yanıtlamadı
            • pylapp@programming.devP

              Rust is adopting an LLM policy

              Takip ediliyor Susturulmuş Konu Zamanlandı Sabitlendi Kilitli Taşındı Programming programming
              1
              1
              1 Oy
              1 İleti
              1 Bakış
              Kimse yanıtlamadı
            • yogthos@lemmy.mlY

              Making holograms with a pen plotter

              Takip ediliyor Susturulmuş Konu Zamanlandı Sabitlendi Kilitli Taşındı General Programming Discussion programming
              1
              1 Oy
              1 İleti
              0 Bakış
              Kimse yanıtlamadı

            Developed by Enes Uysal & Kadir Ay

            5

            Çevrimiçi

            8.8k

            Kullanıcı

            1.9k

            Konu

            3.7k

            İleti
            • Giriş

            • Hesabınız yok mu? Kayıt Ol

            • Aramak için giriş yapın veya kaydolun
            • İlk ileti
              Son ileti