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

    Solved Cron Job for Google Calendar Sync not working

    Easy!Appointments
    2
    7
    447
    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.
    • M
      med1aaccess last edited by

      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

      nebulon 1 Reply Last reply Reply Quote 0
      • nebulon
        nebulon Staff @med1aaccess last edited by

        @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 Reply Quote 0
        • nebulon
          nebulon Staff last edited by

          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 Reply Quote 0
          • M
            med1aaccess last edited by

            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.

            nebulon 1 Reply Last reply Reply Quote 0
            • nebulon
              nebulon Staff @med1aaccess last edited by

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

              1 Reply Last reply Reply Quote 0
              • M
                med1aaccess last edited by

                Thank you,

                syncing every 5 minutes to Google Calendar is working now.

                nebulon 1 Reply Last reply Reply Quote 0
                • nebulon
                  nebulon Staff @med1aaccess last edited by

                  @med1aaccess thanks for letting us know.

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