← Back to team overview

dhis2-devs team mailing list archive

Re: Rebuilding resource tables on org unit changes

 

Hi Mahendra,

thanks for the patch. Applied to trunk now in r 18292.

regards,

Lars


On Tue, Feb 17, 2015 at 5:44 AM, Mahendra Kariya <
mahendra.kariya@xxxxxxxxxxxxxxxx> wrote:

> Hi Lars,
>
> As discussed, find attached the patch. Please review and apply to trunk.
>
> We have added the option "Every 15 mins" to resource table generation
> scheduling.
>
> One thing which is yet to be done is to add the translations for this new
> option for all the languages. None of us here have enough knowledge to do
> the translations. Can the DHIS team take care of it?
>
>
> Thanks,
> Mahendra
>
>
>
>
> On Mon, Feb 16, 2015 at 3:41 PM, Lars Helge Øverland <larshelge@xxxxxxxxx>
> wrote:
>
>> Okay thanls I think that is a good idea to build in.
>>
>>
>>
>> On Mon, Feb 16, 2015 at 11:06 AM, Mahendra Kariya <
>> mahendra.kariya@xxxxxxxxxxxxxxxx> wrote:
>>
>>> Hi Lars,
>>>
>>> On DHIS, we can schedule the generation of resource tables on a daily
>>> basis. But we want this job to run much more frequently. So we are changing
>>> DHIS code to add "Every 15 mins" options to schedule resource tables.
>>>
>>> We will be submitting a patch soon. Please let us know if there is any
>>> issue.
>>>
>>>
>>>
>>> Thanks,
>>> Mahendra
>>>
>>> On Fri, Feb 13, 2015 at 1:28 AM, Lars Helge Øverland <
>>> larshelge@xxxxxxxxx> wrote:
>>>
>>>> Hi Simanta,
>>>>
>>>> the problem with updating resource tables based on user action is that
>>>> this process takes some time and is not "thread-safe", meaning you only
>>>> want this process to run sequentially (one at the time).
>>>>
>>>> My best recommendation would be to set up a sync script (e.g. curl,
>>>> bash, cron) that runs these tables once every 15 minutes or so. That way
>>>> your system will be reasonably up to date.
>>>>
>>>> Lars
>>>>
>>>>