[BUG] Refreshing page starts/stops scheduling

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])

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])

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@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

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@thoughtworks.com 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])

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])

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@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

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@thoughtworks.com 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@thoughtworks.com 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])

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])

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@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

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@thoughtworks.com 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@thoughtworks.com 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@thoughtworks.com 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])

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])

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@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

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@dhis2.org 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@thoughtworks.com wrote:

Hi

This is occurring on 2.25 also. Any updates regarding this?

Thanks

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

On Mon, Aug 8, 2016 at 12:45 PM, Aamer Mohammed aamerm@thoughtworks.com 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@thoughtworks.com 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])

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])

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@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks

Hi Lars,

It happens when we do a browser refresh (F5). This was happening from 2.24 and now reproducible on 2.25 demo as well.

Thanks

Aamer.

···

On Fri, Nov 4, 2016 at 6:24 PM, Anilkumar Kodi anilkumk@thoughtworks.com wrote:

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
  1. 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@dhis2.org 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@thoughtworks.com wrote:

Hi

This is occurring on 2.25 also. Any updates regarding this?

Thanks

Lars Helge Øverland

Lead developer, DHIS 2

University of Oslo

Skype: larshelgeoverland

lars@dhis2.org

http://www.dhis2.org

On Mon, Aug 8, 2016 at 12:45 PM, Aamer Mohammed aamerm@thoughtworks.com 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@thoughtworks.com 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])

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])

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@thoughtworks.com
Telephone
+91 9100960533
ThoughtWorks