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. Support
  3. Runing A Scheduled task (cron)

Runing A Scheduled task (cron)

Scheduled Pinned Locked Moved Solved Support
4 Posts 2 Posters 780 Views 2 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.
    • affinityA Offline
      affinityA Offline
      affinity
      wrote on last edited by affinity
      #1

      Hey there! I am a bit confused as to how to setup a cron in terminal. Or im assuming thats where you set it up.

      I am running a wordpress app and i need to setup a cron job to import data from google calander for a plugin. I was directed to the addon section of cloudron but am a bit confused as to where to run this code.

      Do I just paste it into my apps terminal after modifying the appropriate lines?

      After reading the overview it just points to this manifest page which is blank....

      Also for the schedule feild what would a correct line look like for running the task every 10 minutes? Link this?

            "import_google_events": {
                "schedule": "10 * * * *",
                "command": "//app/data/wp-content/plugins/modern-events-calendar/app/crons/g-import.php"
            }
        }
      

      Just looking for some direction on how to setup cron tasks! thanks!```
      code_text

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

        @affinity The addon section is meant for app packaging/developers and not for end users. The manifest cannot be change at run time, it is something that is set at compile time.

        The wordpress app already runs the WP cron event every 5 minutes. You can use a plugin like https://wordpress.org/plugins/wp-crontrol/ to add custom cron events inside wordpress itself. Does that work for you?

        1 Reply Last reply
        0
        • girishG Do not disturb
          girishG Do not disturb
          girish
          Staff
          wrote on last edited by
          #3

          Something like below to run every 10 seconds.

          af616301-521d-4f34-8807-6ba27f67c200-image.png

          1 Reply Last reply
          0
          • affinityA Offline
            affinityA Offline
            affinity
            wrote on last edited by
            #4

            That would work! Thank you for clarifying this for me. Cheers!

            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