← Back to team overview

dhis2-devs team mailing list archive

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


[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>

PNG image

PNG image


Follow ups