Author: ralfbecker
New Revision: 34249
URL: http://www.egroupware.org/viewvc/egroupware?rev=34249&view=rev
Log:
- exceptions in async jobs no longer stop other jobs
Modified:
trunk/phpgwapi/inc/class.asyncservice.inc.php
Modified: trunk/phpgwapi/inc/class.asyncservice.inc.php
URL: http://www.egroupware.org/viewvc/egroupware/trunk/phpgwapi/inc/class.asyncservice.inc.php?rev=34249&r1=34248&r2=34249&view=diff
— trunk/phpgwapi/inc/class.asyncservice.inc.php (original)
+++ trunk/phpgwapi/inc/class.asyncservice.inc.php Mon Mar 21 14:18:11 2011
@@ -31,7 +31,7 @@
var $debug = 0;
/**
* Line in crontab set by constructor with absolute path
-
-
@var string
*/
var $cronline = ‘/phpgwapi/cron/asyncservices.php default’;
@@ -414,8 +414,7 @@if ($lang != $GLOBALS['egw_info']['user']['preferences']['common']['lang']) {
-
unset($GLOBALS['lang']); -
translation::add_app('common');
-
translation::init(); } } else
@@ -430,8 +429,15 @@
{
$job[‘data’] += array_diff_key($job,array(‘data’ => false));
}
-
ExecMethod($job['method'],$job['data']);
-
try -
{ -
ExecMethod($job['method'],$job['data']); -
} -
catch(Exception $e) -
{ -
// log the exception to error_log, but continue running other async jobs -
_egw_log_exception($e); -
} // re-read job, in case it had been updated or even deleted in the method $updated = $this->read($id); if ($updated && isset($updated[$id]))
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
eGroupWare-cvs mailing list
eGroupWare-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/egroupware-cvs