• pinball_wizard@lemmy.zip
      link
      fedilink
      arrow-up
      33
      ·
      4 days ago

      Well, here’s a sentence I haven’t been tempted to use before:

      “I believe that may be too many crontab entries.”

    • marcos@lemmy.world
      link
      fedilink
      arrow-up
      5
      ·
      4 days ago

      At some point it may be good to migrate to airflow or something similar.

      It’s not the number of entries that makes it bad. It’s the fact that if you run crontab, they are gone…

        • marcos@lemmy.world
          link
          fedilink
          arrow-up
          7
          ·
          4 days ago

          Make the rule start a secondary cron system. Otherwise it won’t run after you erase the crontab.

          • dondelelcaro@lemmy.world
            link
            fedilink
            arrow-up
            6
            ·
            edit-2
            4 days ago

            Here you go:

            with-lock-ex -q /path/to/lockfile sh -c '
            while true; do
                crontab cronfile;
                sleep 60;
            done;'
            
      • bleistift2@sopuli.xyz
        link
        fedilink
        English
        arrow-up
        8
        ·
        edit-2
        4 days ago

        At first I thought you missed the -r. Then I checked. Defaulting to STDIN here is very, very dumb, IMHO. Almost as bad as putting the “edit” flag right next to the “delete everything without confirmation” flag on a Western keyboard (-e vs -r).

        • marcos@lemmy.world
          link
          fedilink
          arrow-up
          7
          ·
          4 days ago

          Crontab is a really badly designed program that we just can’t fix because everybody depends on its WFTs for something.