Openbravo Issue Tracking System - Openbravo ERP |
| View Issue Details |
|
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0028003 | Openbravo ERP | A. Platform | public | 2014-10-28 13:08 | 2018-10-30 10:17 |
|
| Reporter | egoitz | |
| Assigned To | inigosanchez | |
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | |
| Platform | | OS | 5 | OS Version | |
| Product Version | | |
| Target Version | 3.0PR15Q1 | Fixed in Version | 3.0PR15Q1 | |
| Merge Request Status | |
| Review Assigned To | alostale |
| OBNetwork customer | OBPS |
| Web browser | |
| Modules | Core |
| Support ticket | 32040 |
| Regression level | |
| Regression date | |
| Regression introduced in release | |
| Regression introduced by commit | |
| Triggers an Emergency Pack | No |
|
| Summary | 0028003: The daily background process is executed incorrectly when changing from summer time to winter time |
| Description | The daily background process is executed incorrectly when changing from summer time to winter time.
ON that case the it is executed one hour before the scheduled time.
|
| Steps To Reproduce | -Define a background process to be executed every day at 12:00
-one night change the hour from 3:00 to 2:00
-Next day the process is executed at 11:00
The process has been executed after 24 hours, but that is not the correct time. |
| Proposed Solution | Check on the OBSchedule.java that line:
trigger = TriggerUtils.makeHourlyTrigger(interval * 24);
Also could be a bug on the quartz library.
|
| Additional Information | |
| Tags | No tags attached. |
| Relationships | | has duplicate | defect | 0035516 | | closed | egoitz | The background process are executed on an incorrect hour after the change of the time on the server (summer time) | | related to | defect | 0028261 | | closed | inigosanchez | Weekdays process scheduling doesn't work | | related to | defect | 0039564 | | closed | platform | weird scheduled Process Request defaults |
|
| Attached Files | |
|
| Issue History |
| Date Modified | Username | Field | Change |
| 2014-10-28 13:08 | egoitz | New Issue | |
| 2014-10-28 13:08 | egoitz | Assigned To | => AugustoMauch |
| 2014-10-28 13:08 | egoitz | OBNetwork customer | => Yes |
| 2014-10-28 13:08 | egoitz | Modules | => Core |
| 2014-10-28 13:08 | egoitz | Support ticket | => 32040 |
| 2014-10-28 13:08 | egoitz | Resolution time | => 1418598000 |
| 2014-10-28 13:08 | egoitz | Triggers an Emergency Pack | => No |
| 2014-11-03 09:08 | egoitz | Target Version | => 3.0PR15Q1 |
| 2014-11-04 16:16 | alostale | Assigned To | AugustoMauch => inigosanchez |
| 2014-11-10 11:37 | inigosanchez | Note Added: 0071523 | |
| 2014-11-10 12:05 | hgbot | Checkin | |
| 2014-11-10 12:05 | hgbot | Note Added: 0071525 | |
| 2014-11-10 12:05 | hgbot | Status | new => resolved |
| 2014-11-10 12:05 | hgbot | Resolution | open => fixed |
| 2014-11-10 12:05 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/22b389ae25454ae90b481b661d2d1279b9caf339 [^] |
| 2014-11-10 12:10 | inigosanchez | Status | resolved => new |
| 2014-11-10 12:10 | inigosanchez | Resolution | fixed => open |
| 2014-11-10 12:10 | inigosanchez | Issue Monitored: alostale | |
| 2014-11-10 12:11 | inigosanchez | Review Assigned To | => alostale |
| 2014-11-10 12:11 | inigosanchez | Status | new => scheduled |
| 2014-11-10 13:49 | inigosanchez | Status | scheduled => resolved |
| 2014-11-10 13:49 | inigosanchez | Resolution | open => fixed |
| 2014-11-24 15:17 | alostale | Note Added: 0071938 | |
| 2014-11-24 15:17 | alostale | Status | resolved => closed |
| 2014-11-24 15:17 | alostale | Fixed in Version | => 3.0PR15Q1 |
| 2014-11-24 15:22 | alostale | Relationship added | related to 0028261 |
| 2014-12-30 23:24 | hudsonbot | Checkin | |
| 2014-12-30 23:24 | hudsonbot | Note Added: 0073034 | |
| 2017-03-15 14:17 | alostale | Relationship added | related to 0035516 |
| 2017-03-15 16:24 | egoitz | Relationship replaced | has duplicate 0035516 |
| 2018-10-30 10:17 | alostale | Note Added: 0107650 | |
| 2018-10-30 10:27 | alostale | Relationship added | related to 0039564 |
|
Notes |
|
|
|
The behavior described in "Steps To Reproduce" is correct because in that case 24 hours have elapsed.
It has been fixed the problem when a process is scheduled every day without choosing the option "Every n days". This case had a bad behavior. |
|
|
|
(0071525)
|
|
hgbot
|
|
2014-11-10 12:05
|
|
Repository: erp/devel/pi
Changeset: 22b389ae25454ae90b481b661d2d1279b9caf339
Author: Inigo Sanchez <inigo.sanchez <at> openbravo.com>
Date: Mon Nov 10 12:01:36 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/22b389ae25454ae90b481b661d2d1279b9caf339 [^]
Fixes issue 28003: Daily background process is executed incorrectly sometimes.
The daily background process is executed incorrectly when it is not selected option "Every n days".
Now, it has been fixed the problem when a process is scheduled every day without choosing the option "Every n days" by using a cron expression like this:
final String cronExpression = second + " " + minute + " " + hour + " ? * *";
Now, a daily background process has been executed every day at same hour.
---
M src/org/openbravo/scheduling/OBScheduler.java
---
|
|
|
|
|
code reviewed
tested:
-Daily interval works as expected
-Every n days interval creates a every (24hrs x n) interval, meaning execution is triggered after this period regardless DST changes |
|
|
|
|
|
|
|
|
|
Note in more recent Quartz versions it is possible to schedule actual evey n days (rather than every 24*n hours) using quartz cron expressions. |
|