← Back to team overview

dhis2-devs team mailing list archive

Re: [BUG] Refreshing page starts/stops scheduling

 

Hi Lars,

Yes, when we do browser refresh (clicking F5) we are getting this issue. It
is still producible in 2.25 demo instance.

Steps to produce:

1. Enable strategy for any task,
2. Start scheduler
3. Refresh the page,

We will get confirmation box(attached below), if we click on continue,
then scheduler
stops,
If we refresh the page again, scheduler starts

Thanks,
Anil



On Fri, Nov 4, 2016 at 5:38 PM, Lars Helge Øverland <lars@xxxxxxxxx> wrote:

> Hi there,
>
> this seems to work on 2.25 demo instance - could not reproduce.
>
> With reloading the page, do you mean doing a browser refresh (clicking
> F5), or clicking on the Scheduling link the left-side menu?
>
> If this is happening on 2.24, could you see if there are any changes in
> the code between 2.24 and 2.25 here?
>
>
>
> best regards,
>
> Lars
>
>
>
>
>
>
> On Wed, Oct 26, 2016 at 9:06 AM, Aamer Mohammed <aamerm@xxxxxxxxxxxxxxxx>
> wrote:
>
>> Hi
>>
>> This is occurring on 2.25 also. Any updates regarding this?
>>
>> Thanks
>>
>> On Mon, Aug 8, 2016 at 12:45 PM, Aamer Mohammed <aamerm@xxxxxxxxxxxxxxxx>
>> wrote:
>>
>>> Hi Lars/Morten,
>>>
>>> This issue is occurring in the current 2.24 revision also. Any updates
>>> on the same?
>>>
>>>
>>> Thanks
>>> Aamer.
>>>
>>>
>>> On Mon, Apr 4, 2016 at 5:48 PM, Archana Chillala <
>>> archanac@xxxxxxxxxxxxxxxx> wrote:
>>>
>>>> Hi,
>>>>
>>>> We came across a bug in DHIS.
>>>>
>>>> *To reproduce:*
>>>> Go to Administration --> Scheduling.
>>>> Enable a set of tasks for scheduling and START scheduling.
>>>> Info at the bottom says "*Scheduling is active*".
>>>> Now refresh the page and scheduling stops.
>>>>
>>>>
>>>> Attached below are the screenshots and log traces depicting the issue.
>>>>
>>>>
>>>> *Before Refresh: *
>>>>
>>>> * INFO  2016-04-04 17:43:06,518 Scheduled task with key: 0 0 0 * * ?
>>>> and cron: 0 0 0 * * ? (SpringScheduler.java [http-bio-8080-exec-53])
>>>> * INFO  2016-04-04 17:43:06,519 Scheduled task with key: 0 0/1 * * * ?
>>>> and cron: 0 0/1 * * * ? (SpringScheduler.java [http-bio-8080-exec-53])
>>>> * INFO  2016-04-04 17:43:06,521 Status: running
>>>> (ScheduleTasksAction.java [http-bio-8080-exec-53])
>>>> * INFO  2016-04-04 17:43:06,522 Running: true (ScheduleTasksAction.java
>>>> [http-bio-8080-exec-53])
>>>>
>>>>
>>>> [image: Inline image 1]
>>>>
>>>>
>>>>
>>>> *After Refresh:*
>>>>
>>>> * INFO  2016-04-04 17:43:21,491 Stopped task with key: 0 0 0 * * ?
>>>> successfully: true (SpringScheduler.java [http-bio-8080-exec-45])
>>>> * INFO  2016-04-04 17:43:21,492 Stopped task with key: 0 0/1 * * * ?
>>>> successfully: true (SpringScheduler.java [http-bio-8080-exec-45])
>>>> * INFO  2016-04-04 17:43:21,494 Status: not_started
>>>> (ScheduleTasksAction.java [http-bio-8080-exec-45])
>>>> * INFO  2016-04-04 17:43:21,495 Running: false
>>>> (ScheduleTasksAction.java [http-bio-8080-exec-45])
>>>>
>>>>
>>>>
>>>> [image: Inline image 2]
>>>>
>>>>
>>>> Could you please help fix this. We have tested this on DHIS version
>>>> 2.21 and also trunk.
>>>>
>>>>
>>>> *Thanks,*
>>>>
>>>> Archana Chillala
>>>> Application Developer
>>>> Email archanac@xxxxxxxxxxxxxxxx
>>>> Telephone +91 9100960533 <+91+9100960533>
>>>> [image: ThoughtWorks]
>>>> <http://www.thoughtworks.com/?utm_campaign=archana-chillala-signature&utm_medium=email&utm_source=thoughtworks-email-signature-generator>
>>>>
>>>
>>>
>>
>
>
> --
> Lars Helge Øverland
> Lead developer, DHIS 2
> University of Oslo
> Skype: larshelgeoverland
> lars@xxxxxxxxx
> http://www.dhis2.org <https://www.dhis2.org/>
>
>

PNG image

PNG image

Attachment: Screen Shot 2016-11-04 at 6.16.47 PM.png
Description: PNG image


Follow ups

References