Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mautic
  3. Adjust cron jobs for Mautic... is it possible?

Adjust cron jobs for Mautic... is it possible?

Scheduled Pinned Locked Moved Mautic
18 Posts 6 Posters 2.6k Views 7 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • girishG girish

    You can edit the /app/data/crontab.system patterns as you wish . See https://docs.cloudron.io/apps/mautic/#system-cron-jobs . I agree that mautic's flow of calling cron for everything is suboptimial. This is why the package made the patterns editable . In fact, for processing any task, the mautic way is to run a cronjob manually.

    dsp76D Offline
    dsp76D Offline
    dsp76
    wrote on last edited by
    #8

    @girish said in Adjust cron jobs for Mautic... is it possible?:

    You can edit the /app/data/crontab.system patterns as you wish . See https://docs.cloudron.io/apps/mautic/#system-cron-jobs . I agree that mautic's flow of calling cron for everything is suboptimial. This is why the package made the patterns editable . In fact, for processing any task, the mautic way is to run a cronjob manually.

    Will this file stay intact with every Mautic update via cloudron? Because I would then comment them out and completely replace them with custom cron jobs.

    (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

    1 Reply Last reply
    0
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #9

      Yes the cronjobs configured via the UI will persist the update. All in all I am still unsure if its now a good or bad idea to provide default cron jobs for mautic or not. Maybe active mautic users could give some more insights on this?

      1 Reply Last reply
      0
      • dsp76D Offline
        dsp76D Offline
        dsp76
        wrote on last edited by dsp76
        #10

        We have years long experience with mautic 😉

        Its important to help with a default cronjob setup. The one from the docs work, but its not optimal. I will help setting it up in a better way together with you, if you like.

        For now it would be good, if the out of the box setup for cronjobs in cloudron could also be disabled. I did it by commenting out every line in the crontab.system - but will this be replaced again by an update or not? Its in the /app/data directory. So I think it will not?

        I already changed my cronjob setup with a shell file. I trigger this every minute, in case its still running, it will be ignored. I will need to extend it by other optional cronjob tasks - maybe having even two or more scripts. One to run every minute (if server can handle it). And then some maintenance task that don't need to run that often.

        Update - the current version can now be found at:
        https://github.com/twentyZen/mautic-cronjobs

        Myself I'm not a script or Linux Professional. Probably that approach can be improved.

        (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

        jordanurbsJ 1 Reply Last reply
        2
        • dsp76D Offline
          dsp76D Offline
          dsp76
          wrote on last edited by
          #11

          For instance - whats the php memory limit on cli? Is it the same limit as for the mautic instance overall?

          (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

          girishG 1 Reply Last reply
          0
          • dsp76D dsp76 referenced this topic on
          • dsp76D dsp76

            For instance - whats the php memory limit on cli? Is it the same limit as for the mautic instance overall?

            girishG Offline
            girishG Offline
            girish
            Staff
            wrote on last edited by
            #12

            @dsp76 By default, the cli and apache have same php memory limit - 512M . If you change the memory_limit in /app/data/php.ini , it will affect both.

            1 Reply Last reply
            1
            • rmdesR Offline
              rmdesR Offline
              rmdes
              wrote on last edited by
              #13

              Any having issues with cron jobs ?

              my segments have stopped updating automatically but I haven't touched the crontab.system or crontab.user
              neither have I customized anything regarding cron jobs in Mautic

              1 Reply Last reply
              0
              • girishG Offline
                girishG Offline
                girish
                Staff
                wrote on last edited by
                #14

                Anything in the logs? Which mautic package are you on?

                jordanurbsJ 1 Reply Last reply
                0
                • dsp76D dsp76 referenced this topic on
                • dsp76D dsp76

                  We have years long experience with mautic 😉

                  Its important to help with a default cronjob setup. The one from the docs work, but its not optimal. I will help setting it up in a better way together with you, if you like.

                  For now it would be good, if the out of the box setup for cronjobs in cloudron could also be disabled. I did it by commenting out every line in the crontab.system - but will this be replaced again by an update or not? Its in the /app/data directory. So I think it will not?

                  I already changed my cronjob setup with a shell file. I trigger this every minute, in case its still running, it will be ignored. I will need to extend it by other optional cronjob tasks - maybe having even two or more scripts. One to run every minute (if server can handle it). And then some maintenance task that don't need to run that often.

                  Update - the current version can now be found at:
                  https://github.com/twentyZen/mautic-cronjobs

                  Myself I'm not a script or Linux Professional. Probably that approach can be improved.

                  jordanurbsJ Offline
                  jordanurbsJ Offline
                  jordanurbs
                  wrote on last edited by jordanurbs
                  #15

                  hey @dsp76 thanks for sharing... so if I install this shell file to my Mautic installation on Cloudron, it'll speed up the cronjobs?

                  Unfortunately I'm unable to add an .env file because on Cloudron the app is a "read only filesystem"

                  dsp76D 1 Reply Last reply
                  0
                  • girishG girish

                    Anything in the logs? Which mautic package are you on?

                    jordanurbsJ Offline
                    jordanurbsJ Offline
                    jordanurbs
                    wrote on last edited by
                    #16

                    @girish same problem for me as @rmdes (I know it was over a year ago, but it's what lead me to this thread)

                    cloudron v8.2.4
                    Mautic 5.2.3

                    1 Reply Last reply
                    0
                    • J Offline
                      J Offline
                      joseph
                      Staff
                      wrote on last edited by
                      #17

                      @jordanurbs have you tried running the cronjob manually . https://docs.cloudron.io/apps/mautic/#system-cron-jobs ? Maybe it's erroring?

                      1 Reply Last reply
                      0
                      • jordanurbsJ jordanurbs

                        hey @dsp76 thanks for sharing... so if I install this shell file to my Mautic installation on Cloudron, it'll speed up the cronjobs?

                        Unfortunately I'm unable to add an .env file because on Cloudron the app is a "read only filesystem"

                        dsp76D Offline
                        dsp76D Offline
                        dsp76
                        wrote on last edited by
                        #18

                        @jordanurbs you could put those in the /app/data folder which is writeable?

                        (Ask me about B2B marketing automation & low code business solutions, if thats interesting for you.)

                        1 Reply Last reply
                        1
                        Reply
                        • Reply as topic
                        Log in to reply
                        • Oldest to Newest
                        • Newest to Oldest
                        • Most Votes


                        • Login

                        • Don't have an account? Register

                        • Login or register to search.
                        • First post
                          Last post
                        0
                        • Categories
                        • Recent
                        • Tags
                        • Popular
                        • Bookmarks
                        • Search