SOLVED Cron Job for Google Calendar Sync not working
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.
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?
@med1aaccess the current package does not come with cron or any other scheduler enabled. We will add this to the next package release then.
I've added the cron-job support to run the
synccommand 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
synccommand runs, it basically so far does nothing for me.
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.
@med1aaccess ok. I have released a new app package with the cronjob run every 5min now.
syncing every 5 minutes to Google Calendar is working now.
@med1aaccess thanks for letting us know.