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. Easy!Appointments
  3. Cron Job for Google Calendar Sync not working

Cron Job for Google Calendar Sync not working

Scheduled Pinned Locked Moved Solved Easy!Appointments
7 Posts 2 Posters 2.0k 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.
  • M Offline
    M Offline
    med1aaccess
    wrote on last edited by
    #1

    Hello,

    one feature of the Easy!Appointments App is to sync appointments with Google Calendar. To automate this process you have to create a Cron Job.

    https://easyappointments.org/2021/02/22/configuring-cron-jobs/

    I have tried to add a crontab file in /app/data/, but this does not seem to work. In the Cloudron documentation I read about a scheduler addon that you can put in a Cloudron Manifest. But as far as I understand this is only used for when you are packaging your own app?

    Is there any way I can add a Cron Job within the Easy!Appointments App container?

    Thank you

    Lukas

    nebulonN 1 Reply Last reply
    0
    • M med1aaccess

      Hello,

      one feature of the Easy!Appointments App is to sync appointments with Google Calendar. To automate this process you have to create a Cron Job.

      https://easyappointments.org/2021/02/22/configuring-cron-jobs/

      I have tried to add a crontab file in /app/data/, but this does not seem to work. In the Cloudron documentation I read about a scheduler addon that you can put in a Cloudron Manifest. But as far as I understand this is only used for when you are packaging your own app?

      Is there any way I can add a Cron Job within the Easy!Appointments App container?

      Thank you

      Lukas

      nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      @med1aaccess the current package does not come with cron or any other scheduler enabled. We will add this to the next package release then.

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

        I've added the cron-job support to run the sync command now. But before publishing the package, the upstream article you have linked uses a cron pattern to run once every hour. Is that what we want as well in the package? Further I don't have a google calendar to test this here locally, so while the sync command runs, it basically so far does nothing for me.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          med1aaccess
          wrote on last edited by
          #4

          Thank you for your quick response,

          I think it would be useful to run the sync command more frequently, like every 5 minutes. I have tested the sync command successfully and it works as expected, I just wasn't able to automate it via a Cron Job.

          nebulonN 1 Reply Last reply
          0
          • M med1aaccess

            Thank you for your quick response,

            I think it would be useful to run the sync command more frequently, like every 5 minutes. I have tested the sync command successfully and it works as expected, I just wasn't able to automate it via a Cron Job.

            nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #5

            @med1aaccess ok. I have released a new app package with the cronjob run every 5min now.

            1 Reply Last reply
            0
            • M Offline
              M Offline
              med1aaccess
              wrote on last edited by
              #6

              Thank you,

              syncing every 5 minutes to Google Calendar is working now.

              nebulonN 1 Reply Last reply
              0
              • M med1aaccess

                Thank you,

                syncing every 5 minutes to Google Calendar is working now.

                nebulonN Offline
                nebulonN Offline
                nebulon
                Staff
                wrote on last edited by
                #7

                @med1aaccess thanks for letting us know.

                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