← Back to team overview

dhis2-devs team mailing list archive

Re: api for scheduling generation of resource tables

 

Yes you need to stop first. It will remove current tasks. If you try to
start a task that is already active it will be ignored. So just
call stopTasks first.

Lars

On Wed, Feb 18, 2015 at 11:44 AM, Sandesh Sukumar Doolipeta <
sandeshd@xxxxxxxxxxxxxxxx> wrote:

> Hi Lars ,
>
> From the UI , i.e data Administration > scheduling it is ensured that all
> the tasks are stopped, before changing a parameter in the scheduler(say ,
> from every day to every 15 mins once).
>
> Is it ok to change the paramaters without stopping the tasks? will this
> break anything ?
>
> On Wed, Feb 18, 2015 at 4:02 PM, Lars Helge Øverland <larshelge@xxxxxxxxx>
> wrote:
>
>> Great, thanks.
>>
>> On Wed, Feb 18, 2015 at 11:31 AM, Sandesh Sukumar Doolipeta <
>> sandeshd@xxxxxxxxxxxxxxxx> wrote:
>>
>>> Hi Lars ,
>>>
>>> Yes , i will take this up and submit a patch soon.
>>>
>>> On Wed, Feb 18, 2015 at 2:52 PM, Lars Helge Øverland <
>>> larshelge@xxxxxxxxx> wrote:
>>>
>>>> Hi Sandesh,
>>>>
>>>> not currently, but is should be trivial to implement. The service to
>>>> expose is:
>>>>
>>>> DefaultSchedulingManager / SchedulingManager (scheduleTasks(Map))
>>>>
>>>> Have a look in ScheduleTasksAction for example usage.
>>>>
>>>> Let me know if you would like to take this on.
>>>>
>>>> regards,
>>>>
>>>> Lars
>>>>
>>>>
>>>>
>>>> On Wed, Feb 18, 2015 at 10:01 AM, Sandesh Sukumar Doolipeta <
>>>> sandeshd@xxxxxxxxxxxxxxxx> wrote:
>>>>
>>>>> Hi ,
>>>>>
>>>>> We want to schedule the resource table generation for every 15 mins.
>>>>> For now , we are manually doing this through data Administration >
>>>>> scheduling.
>>>>> Though this is a one time setup , we would like to achieve this while
>>>>> running scripts to setup DHIS.
>>>>>
>>>>> Is there a web api using which we can achieve this ?
>>>>>
>>>>> --
>>>>> *Sandesh Doolipeta**Application Developer*
>>>>> Emailsandeshd@xxxxxxxxxxxxxxxx
>>>>> Telephone9686062727
>>>>> [image: ThoughtWorks] <http://www.thoughtworks.com/>
>>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> *Sandesh Doolipeta**Application Developer*
>>> Emailsandeshd@xxxxxxxxxxxxxxxx
>>> Telephone9686062727
>>> [image: ThoughtWorks] <http://www.thoughtworks.com/>
>>>
>>
>>
>
>
> --
> *Sandesh Doolipeta**Application Developer*
> Emailsandeshd@xxxxxxxxxxxxxxxx
> Telephone9686062727
> [image: ThoughtWorks] <http://www.thoughtworks.com/>
>

References