FCLT#90149 Upgrade tsk package robuuster maken
svn path=/Website/trunk/; revision=70503
This commit is contained in:
@@ -176,6 +176,7 @@ function sendNotification(ref_key, pcode, params)
|
||||
|
||||
var delayed = null;
|
||||
var lastrealuser = "";
|
||||
var lastnotificatie_key = -1;
|
||||
while (true)
|
||||
{
|
||||
var oRs = Oracle.Execute(sql_puo); // iedere keer opnieuw openen. Er kan een hogere prio notificatie tussengekomen zijn
|
||||
@@ -218,6 +219,20 @@ function sendNotification(ref_key, pcode, params)
|
||||
}
|
||||
break; // uit de loop
|
||||
}
|
||||
|
||||
if (lastnotificatie_key == oRs("fac_notificatie_key").value)
|
||||
{
|
||||
// 1 minuut uitstellen om bij zeer ernstig falen verderop te voorkomen dat we in een heel strakke loop komen
|
||||
if (typeof WScript != 'undefined')
|
||||
{
|
||||
WScript.Echo("Strange, no progress for notification {0}. Napping for 60 seconds".format(lastnotificatie_key));
|
||||
}
|
||||
var oAbout = new ActiveXObject("SLNKDWF.About");
|
||||
oAbout.Sleep(60*1000);
|
||||
Log2File(0, "Strange, no progress for notification {0}. I took a nap for 60 seconds".format(lastnotificatie_key));
|
||||
}
|
||||
lastnotificatie_key = oRs("fac_notificatie_key").value;
|
||||
|
||||
delayed = null;
|
||||
|
||||
Log2File(2, "\n\n" + Fill(100, "="));
|
||||
@@ -243,7 +258,7 @@ function sendNotification(ref_key, pcode, params)
|
||||
if (realuser && realuser != lastrealuser)
|
||||
{
|
||||
Log2File(1, "Switching to custenv.wsc overrules by " + realuser);
|
||||
if (realuser.indexOf("@") > -1) // AAREON\JOSGL@/trunk
|
||||
if (realuser.indexOf("@") > -1 && typeof WScript != 'undefined') // AAREON\JOSGL@/trunk
|
||||
{
|
||||
rooturl = realuser.split("@")[1]; // '/trunk'
|
||||
if (rooturl && !WScript.ScriptFullName.toLowerCase().replace(/\\/g, "/").match(rooturl.toLowerCase() + "/"))
|
||||
|
||||
Reference in New Issue
Block a user