FCLT#88543 Tasker 'late' onderzoek
svn path=/Website/branches/v2025.1/; revision=68705
This commit is contained in:
@@ -49,7 +49,7 @@ function sendNotification(ref_key, pcode, params)
|
||||
|
||||
if (aantalfuture)
|
||||
{
|
||||
Log2File(1, "====== Skipping {0} delayed notifications for between {1} and {2}".format(aantalfuture, toDateTimeString(firstdatum), toDateTimeString(lastdatum)));
|
||||
Log2File(1, "{0} Skipping {1} delayed notifications for between {2} and {3}".format(toDateTimeString(new Date()), aantalfuture, toDateTimeString(firstdatum), toDateTimeString(lastdatum)));
|
||||
if (forceOrders)
|
||||
Log2File(1, "*But* parameter FORCE is given so sending anyway");
|
||||
}
|
||||
@@ -152,8 +152,14 @@ function sendNotification(ref_key, pcode, params)
|
||||
var sql = "BEGIN fac.fac_pre_putorders(); END;";
|
||||
Log2File(3, sql);
|
||||
try
|
||||
{
|
||||
{ // we weten niet of pre_putorders bij de klant is gedefinieerd maar kunnen het wel timen
|
||||
var tmstart = new Date();
|
||||
Oracle.Execute(sql);
|
||||
var tm = (new Date().getTime() - tmstart.getTime());
|
||||
if (tm > 500)
|
||||
{
|
||||
Log2File(1, "pre_putorders took {0} seconds".format(Math.round(tm/100) / 10));
|
||||
}
|
||||
}
|
||||
catch(e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user