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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Cron job only every 10 minutes?!

    EspoCRM
    cron
    5
    9
    305
    Loading More Posts
    • 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.
    • imc67
      imc67 translator last edited by

      I just installed and explored EspoCRM and it looks promising!

      After configuring in/out going groupbox I noticed emails didn't fetch. Looking at the jobs they are only processed once every 10 minutes. EspoCRM advises to use a minute cron but the app is configured at every 10 minutes.

      Is it possible to change this to 1 minute otherwise one had to wait too long for emails to be fetched?

      subven 1 Reply Last reply Reply Quote 3
      • subven
        subven last edited by

        Take a look at https://YOURESPOCRM.DOMAIN/#ScheduledJob πŸ™‚ See https://docs.espocrm.com/administration/jobs/#scheduled-jobs for documentation.

        imc67 1 Reply Last reply Reply Quote 0
        • imc67
          imc67 translator @subven last edited by

          @subven yes but that doesn't change the "main" cron (from the app manifest):

          "scheduler": {
                "jobs": {
                  "schedule": "*/10 * * * *",
                  "command": "/usr/local/bin/gosu www-data:www-data php /app/code/current/cron.php"
                }
          
          1 Reply Last reply Reply Quote 1
          • nebulon
            nebulon Staff last edited by

            I see, not sure why the 10min were configured if upstream recommends 1 minute. @girish do you know if this was intentional or just a guess?

            1 Reply Last reply Reply Quote 1
            • jimcavoli
              jimcavoli App Dev last edited by

              This would actually explain a whole class of strange behavior I've seen with jobs getting backlogged when running more frequently than 10min.

              1 Reply Last reply Reply Quote 2
              • subven
                subven @imc67 last edited by

                @imc67 said in Cron job only every 10 minutes?!:

                EspoCRM advises to use a minute cron but the app is configured at every 10 minutes.

                Hmm he seems to be right. The docs suggest to run the main cron (manager) every minute. This than starts all other crons (called "jobs" as you can read from the link I posted in the second post above) according to their settings. Maybe it was good to take a look at this πŸ™‚

                imc67 girish 2 Replies Last reply Reply Quote 0
                • imc67
                  imc67 translator @subven last edited by imc67

                  @subven the current way of working means sending an email takes up to 20 minutes:

                  Minute 1: click send
                  Minute 10: β€œmain” cron creates a schedule for sending
                  Minute 20: that schedule is executed (also if it had a 1 minute interval)

                  girish 1 Reply Last reply Reply Quote 0
                  • girish
                    girish Staff @subven last edited by

                    @subven right, changing to 1min make sense.

                    New package coming up.

                    1 Reply Last reply Reply Quote 0
                    • girish
                      girish Staff @imc67 last edited by

                      @imc67 Pushed a new package now

                      1 Reply Last reply Reply Quote 3
                      • First post
                        Last post
                      Powered by NodeBB