I have had a concern about the scheduler module. The cronjobs I set up using this scheduler fail always. I have repeatedly tried automating the running of analytics using this feature with no success. I am curious to know if any of us has experienced the issue.
You are right. I have tried running the Analytics for two times a day and the cronjob failed. Then I tried for every hour, it failed. The only schedule that works is the predefined midnight schedule.
I wanted to raise the issue here in CoP but forgot. Thanks for sharing and raising it.
Our team from @dhis2-analytics will have a look at this and advise.
Morning @jomutsani. I am just following up on this issue we raised together with @MSP. Was the @dhis2-analytics able to sort the issue? Can we change the war file? I tried the same on the demo server but the problem still exists.
I’m following up on this too… Seen on JIRA - most fixes done by @David_Katuscak and team. kindly be patient as we look into this.
Thanks @jomutsani. I can see that we have the issue sorted in the 2.30. I am looking forward for the fixes.
@jomutsani at time upgrading the version is messy and need to be well planned. I got a workaround.
So this is how I managed to run analytics via API and even set a cron job for it:
00 */12 * * * curl -X POST -u username:password https://example.com/api/29/resourceTables/analytics
The cron job runs twice a day, after every twelve hours.