DHIS Analytics Schedule

Hi - by default, once you schedule the analytics in DHIS, they run at midnight every night.

The project that I’m working on has 10 years of data, and it takes about 60secs to run. The users would like to schedule the analtyics every 60min - how can I set the server to run hourly? The UI doesn’t allow this setting, but there must be a way of hacking the associated task. Have anyone do it?

R

Hi Rodolfo,
You can just use a cron job to start the analytics. You can ready about it here

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s29.html

Most any scripting language (bash, python, NodeJS, R) to do fancy stuff or just plain call to curl should work fine.

Regards,

Jason

···

On Fri, Jul 31, 2015 at 10:43 AM, Rodolfo Melia rmelia@knowming.com wrote:

Hi - by default, once you schedule the analytics in DHIS, they run at midnight every night.

The project that I’m working on has 10 years of data, and it takes about 60secs to run. The users would like to schedule the analtyics every 60min - how can I set the server to run hourly? The UI doesn’t allow this setting, but there must be a way of hacking the associated task. Have anyone do it?

R


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

Jason - this is great. The load can be significantly reduced by skipping the resource tables, and only regenerating the last year of data. Thanks so much !

···

On Fri, Jul 31, 2015 at 9:57 AM, Jason Pickering jason.p.pickering@gmail.com wrote:

Hi Rodolfo,
You can just use a cron job to start the analytics. You can ready about it here

https://www.dhis2.org/doc/snapshot/en/developer/html/ch01s29.html

Most any scripting language (bash, python, NodeJS, R) to do fancy stuff or just plain call to curl should work fine.

Regards,

Jason

Rodolfo Meliá

*Principal | *rmelia@knowming.com

Skype: rod.melia | +44 777 576 4090 | +1 708 872 7636

www.knowming.com

On Fri, Jul 31, 2015 at 10:43 AM, Rodolfo Melia rmelia@knowming.com wrote:

Hi - by default, once you schedule the analytics in DHIS, they run at midnight every night.

The project that I’m working on has 10 years of data, and it takes about 60secs to run. The users would like to schedule the analtyics every 60min - how can I set the server to run hourly? The UI doesn’t allow this setting, but there must be a way of hacking the associated task. Have anyone do it?

R


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Jason P. Pickering
email: jason.p.pickering@gmail.com
tel:+46764147049

1 Like