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. Mautic cron settings

Mautic cron settings

Scheduled Pinned Locked Moved Solved Mautic
mautic
10 Posts 4 Posters 2.0k Views 4 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.
    • micmcM Offline
      micmcM Offline
      micmc
      wrote on last edited by girish
      #1

      Hey folks,

      Anyone is aware of what's the deal with the setting of cron job for the Mautic app?

      When I try to enter crontab -e on the terminal I'm getting the error command not found message. Huh?

      Then, I noticed there's this button at the top "Sheduler/cron". How cool, but how does it work!?

      Clicking the button we see a dropdown menu with a fair large list of choices of attributes, all right then what?

      When I click, let's say "mautic_campaigns_trigger" for example, there's a command that posts itself to the command line like, in this case; # sudo -u www-data --preserve-env php /app/code/app/console mautic:campaigns:trigger without return carriage. That's it!

      Now what? Is this scheduled? Is that all? Do I need to press enter? (pressing it seems to do nothing more) Do I need to click each of the attributes from the dropdown one after another in order to complete the cron scheduling required to run mautic??

      Cloudron's mautic doc is empty, and seacrh on this forum was not relevant and of no help at all.

      Regards,
      Andy

      Ignorance is not an excuse anymore!
      https://AutomateKit.com

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

        @micmc Mautic is already pre-configure with the cron jobs. See https://git.cloudron.io/cloudron/mautic-app/blob/master/CloudronManifest.json#L16 . The 'cron' button in the terminal is intended to help you run any of the tasks listed in the manifest "immediately" at that instant. Otherwise, they will run automatically based on the schedule pattern in the manifest.

        For your case, the trigger pattern is below:

              "mautic_campaigns_trigger": {
                "schedule": "2,17,32,47 * * * *",
                "command": "sudo -u www-data --preserve-env php /app/code/app/console mautic:campaigns:trigger"
              },
        
        micmcM 1 Reply Last reply
        1
        • girishG girish

          @micmc Mautic is already pre-configure with the cron jobs. See https://git.cloudron.io/cloudron/mautic-app/blob/master/CloudronManifest.json#L16 . The 'cron' button in the terminal is intended to help you run any of the tasks listed in the manifest "immediately" at that instant. Otherwise, they will run automatically based on the schedule pattern in the manifest.

          For your case, the trigger pattern is below:

                "mautic_campaigns_trigger": {
                  "schedule": "2,17,32,47 * * * *",
                  "command": "sudo -u www-data --preserve-env php /app/code/app/console mautic:campaigns:trigger"
                },
          
          micmcM Offline
          micmcM Offline
          micmc
          wrote on last edited by
          #3

          @girish WOW that's fantastic! And for someone used to set crontab from cli that's too easy, once we know it... lol 🙂

          Left to add this info to the docs.

          Cheers mate.
          Andy

          Ignorance is not an excuse anymore!
          https://AutomateKit.com

          1 Reply Last reply
          0
          • GrienauerG Offline
            GrienauerG Offline
            Grienauer
            wrote on last edited by
            #4

            @girish can you check if the crons are still configured?
            I can't see any in the actual https://git.cloudron.io/cloudron/mautic-app/blob/master/CloudronManifest.json you mentioned and also can't find any button in the terminal…
            maybe that got lost with the move to mautic 3?
            thx!

            Drupal CMS and Open Source Expert, Mautic Community lead Secretary

            girishG 1 Reply Last reply
            0
            • GrienauerG Grienauer

              @girish can you check if the crons are still configured?
              I can't see any in the actual https://git.cloudron.io/cloudron/mautic-app/blob/master/CloudronManifest.json you mentioned and also can't find any button in the terminal…
              maybe that got lost with the move to mautic 3?
              thx!

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

              @grienauer Ah right, we changed the cron setup of mautic entirely since this post. You can run it as explained here - https://docs.cloudron.io/apps/mautic/#system-cron-jobs

              1 Reply Last reply
              0
              • GrienauerG Offline
                GrienauerG Offline
                Grienauer
                wrote on last edited by
                #6

                @girish thx! what about the cron button mentioned in the post (which should be available in the terminal) would be great to have that again 🙂

                Drupal CMS and Open Source Expert, Mautic Community lead Secretary

                1 Reply Last reply
                0
                • AizatA Offline
                  AizatA Offline
                  Aizat
                  wrote on last edited by
                  #7

                  Hi, I'm a little late to the party; I'm about to use Mautic for the first time. I checked their documentation, and they advised to set up the cron to ensure Mautic works appropriately.
                  I have a few questions regarding the cron:

                  1. Do I need to add any cronjob in the Cloudron crontab? Or Cloudron has the app pre-configured to run at specific times for "segment, campaign updates", etc

                  2. Do I need to add the cron mentioned here manually: https://docs.mautic.org/en/setup/cron-jobs/

                  According to:
                  https://docs.cloudron.io/apps/mautic/

                  1. I assume I can change/overwrite the cronjob on how often, for example: "mautic:segments:update" works, by adding the instance I need in the Cloudron cron section, am I right?

                  Thanks in advance for the tips!

                  girishG 1 Reply Last reply
                  0
                  • AizatA Aizat

                    Hi, I'm a little late to the party; I'm about to use Mautic for the first time. I checked their documentation, and they advised to set up the cron to ensure Mautic works appropriately.
                    I have a few questions regarding the cron:

                    1. Do I need to add any cronjob in the Cloudron crontab? Or Cloudron has the app pre-configured to run at specific times for "segment, campaign updates", etc

                    2. Do I need to add the cron mentioned here manually: https://docs.mautic.org/en/setup/cron-jobs/

                    According to:
                    https://docs.cloudron.io/apps/mautic/

                    1. I assume I can change/overwrite the cronjob on how often, for example: "mautic:segments:update" works, by adding the instance I need in the Cloudron cron section, am I right?

                    Thanks in advance for the tips!

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

                    @Aizat

                    1. The "standard" cron jobs i.e listed in https://docs.mautic.org/en/setup/cron-jobs are already configured. See /app/data/crontab.system , it contains the system (i.e "standard") cron jobs. You can edit the cron times there if you want things to run more/less frequently. Don't remove items from that file.

                    2. https://docs.mautic.org/en/setup/cron-jobs are already setup as mentioned above.

                    3. mautic:segments:update is one of the standard cron tasks, so you don't need to add that in the app's cron manually.

                    Thumbrule is:

                    • See first if it's in /app/data/crontab.system . If it's there, it's because it's part of mautic core and a standard cron job. You can customize the interval in the file directly and then restart the app.

                    • If you want to add some custom cron job , like for some custom data processing or some for some plugin or something else, add it in app's cron manually.

                    AizatA 1 Reply Last reply
                    1
                    • girishG girish

                      @Aizat

                      1. The "standard" cron jobs i.e listed in https://docs.mautic.org/en/setup/cron-jobs are already configured. See /app/data/crontab.system , it contains the system (i.e "standard") cron jobs. You can edit the cron times there if you want things to run more/less frequently. Don't remove items from that file.

                      2. https://docs.mautic.org/en/setup/cron-jobs are already setup as mentioned above.

                      3. mautic:segments:update is one of the standard cron tasks, so you don't need to add that in the app's cron manually.

                      Thumbrule is:

                      • See first if it's in /app/data/crontab.system . If it's there, it's because it's part of mautic core and a standard cron job. You can customize the interval in the file directly and then restart the app.

                      • If you want to add some custom cron job , like for some custom data processing or some for some plugin or something else, add it in app's cron manually.

                      AizatA Offline
                      AizatA Offline
                      Aizat
                      wrote on last edited by
                      #9

                      @girish Thank you so much.
                      Regarding the sending email, I've set up Cloudron to send emails via relay with Amazon SES. Therefore, when I set the email in Mautic, I can use a domain email I've set up in Cloudron as a relay to send via Amazon SES. Do I get it correct?

                      girishG 1 Reply Last reply
                      0
                      • AizatA Aizat

                        @girish Thank you so much.
                        Regarding the sending email, I've set up Cloudron to send emails via relay with Amazon SES. Therefore, when I set the email in Mautic, I can use a domain email I've set up in Cloudron as a relay to send via Amazon SES. Do I get it correct?

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

                        @Aizat Yes, that should work.

                        1 Reply Last reply
                        0
                        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