Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0020671Openbravo ERPA. Platformpublic2012-06-04 13:482013-04-25 22:28
alostale 
alostale 
urgentminorN/A
closedfixed 
5
 
3.0MP193.0MP19 
AugustoMauch
Core
No
0020671: Allow to define "single instance" processes
Some processes don't make sense to be executed in parallel. There should be a way to prevent it.
-Create a process taking long to execute
-Schedule it to be executed with a period shorter than the time taken to be finished. Note that several instances of the process are launched at the same time.
Allow processes to be defined as "single instance", in case one instance of the process is currently running, do not allow to execute another one simultaneously.
No tags attached.
png Selection_093.png (32,986) 2012-12-10 11:19
https://issues.openbravo.com/file_download.php?file_id=5808&type=bug
png
Issue History
2012-06-04 13:48alostaleNew Issue
2012-06-04 13:48alostaleAssigned To => alostale
2012-06-04 13:48alostaleModules => Core
2012-06-04 13:52alostaleSummaryAllow to define "one instance" processes => Allow to define "single instance" processes
2012-06-04 13:52alostaleProposed Solution updated
2012-12-10 10:02alostaleTriggers an Emergency Pack => No
2012-12-10 10:02alostaleTarget Version => 3.0MP19
2012-12-10 11:19alostaleFile Added: Selection_093.png
2012-12-10 11:20alostaleNote Added: 0054790
2012-12-13 15:10alostaleReview Assigned To => AugustoMauch
2012-12-13 15:12hgbotCheckin
2012-12-13 15:12hgbotNote Added: 0054919
2012-12-13 15:12hgbotStatusnew => resolved
2012-12-13 15:12hgbotResolutionopen => fixed
2012-12-13 15:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5d74d039ab3e38ec29edd3602b9330022ecef6a6 [^]
2012-12-14 11:11AugustoMauchNote Added: 0054938
2012-12-14 11:11AugustoMauchStatusresolved => closed
2012-12-14 11:11AugustoMauchFixed in Version => 3.0MP19
2012-12-17 13:34hudsonbotCheckin
2012-12-17 13:34hudsonbotNote Added: 0055005
2013-04-24 17:22hgbotCheckin
2013-04-24 17:22hgbotNote Added: 0058180
2013-04-25 22:28hudsonbotCheckin
2013-04-25 22:28hudsonbotNote Added: 0058264

Notes
(0054790)
alostale   
2012-12-10 11:20   
Attached image on how concurrent execution attempts are shown in Process Monitor after applying the fix for this issue.
(0054919)
hgbot   
2012-12-13 15:12   
Repository: erp/devel/pi
Changeset: 5d74d039ab3e38ec29edd3602b9330022ecef6a6
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Thu Dec 13 15:10:26 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5d74d039ab3e38ec29edd3602b9330022ecef6a6 [^]

fixed issue 20671: Allow to define "single instance" processes

---
M modules/org.openbravo.advpaymentmngt/src-db/database/sourcedata/AD_PROCESS.xml
M modules/org.openbravo.financial.paymentreport/src-db/database/sourcedata/AD_PROCESS.xml
M modules/org.openbravo.reports.ordersawaitingdelivery/src-db/database/sourcedata/AD_PROCESS.xml
M src-db/database/model/tables/AD_PROCESS.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_PROCESS.xml
M src/org/openbravo/scheduling/OBScheduler.java
M src/org/openbravo/scheduling/Process.java
M src/org/openbravo/scheduling/ProcessMonitor.java
M src/org/openbravo/scheduling/Trigger_data.xsql
---
(0054938)
AugustoMauch   
2012-12-14 11:11   
Code reviewed and verified in pi@3db450e737fd
(0055005)
hudsonbot   
2012-12-17 13:34   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/c79ef1b1f830 [^]

Maturity status: Test
(0058180)
hgbot   
2013-04-24 17:22   
Repository: erp/devel/pi
Changeset: df632055548f4e6628d95159d4155c3b112e0512
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Wed Apr 24 17:21:50 2013 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/df632055548f4e6628d95159d4155c3b112e0512 [^]

related to issue 20671: don't spam log when single instance process is executed

---
M src/org/openbravo/scheduling/ProcessMonitor.java
---
(0058264)
hudsonbot   
2013-04-25 22:28   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/9fc67869838e [^]

Maturity status: Test