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. EspoCRM
  3. Cron job only every 10 minutes?!

Cron job only every 10 minutes?!

Scheduled Pinned Locked Moved EspoCRM
cron
9 Posts 5 Posters 1.7k Views 5 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.
  • imc67I Offline
    imc67I Offline
    imc67
    translator
    wrote on last edited by
    #1

    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?

    subvenS 1 Reply Last reply
    3
    • subvenS Offline
      subvenS Offline
      subven
      wrote on last edited by
      #2

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

      imc67I 1 Reply Last reply
      0
      • subvenS subven

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

        imc67I Offline
        imc67I Offline
        imc67
        translator
        wrote on last edited by
        #3

        @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
        1
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          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
          1
          • jimcavoliJ Offline
            jimcavoliJ Offline
            jimcavoli
            App Dev
            wrote on last edited by
            #5

            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
            2
            • imc67I imc67

              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?

              subvenS Offline
              subvenS Offline
              subven
              wrote on last edited by
              #6

              @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 πŸ™‚

              imc67I girishG 2 Replies Last reply
              0
              • subvenS subven

                @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 πŸ™‚

                imc67I Offline
                imc67I Offline
                imc67
                translator
                wrote on last edited by imc67
                #7

                @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)

                girishG 1 Reply Last reply
                0
                • subvenS subven

                  @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 πŸ™‚

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

                  @subven right, changing to 1min make sense.

                  New package coming up.

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

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

                    @imc67 Pushed a new package now

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