【发布时间】:2018-07-06 03:39:30
【问题描述】:
运行代理时,有时会遇到类似“HTTP Server: Execution time limit exceeded by Agent xxx”的错误。但如果再次运行,它将正确运行。是否意味着代理被其他任务阻止?我应该在哪里研究原因?代码如下:
Set tDb = New NotesDatabase(db.Server, "test\Test.nsf")
Set tView = tDb.GetView("TestView")
Set tDoc = tView.GetFirstDocument
lastTest = After(tDoc.Name(0))
lastName = tDoc.Name(0)
curName = lastName
Open dirLoc & Replace(lastTest) & ".html" For Output As #1
For i = 0 To 6
Print #1, headerArray(i)
Next
While Not tDoc Is Nothing
curTest = After(tDoc.Name(0))
curName = tDoc.Name(0)
If lastTest <> curTest Then
Print #1, footerStr
Close #1
Open dirLoc & Replace(curTest) & ".html" For Output As #1
For i = 0 To 6
Print #1, headerArray(i)
Next
End If
Set dateAssigned = New NotesDateTime(tDoc.Completed(0))
timeDiff = todaysDate.TimeDifference(dateAssigned) / 3600 / 24
If timeDiff <= 10 Then
Print #1, repeatArr(0)
... ...
Print #1, repeatArr(14)
End If
lastName = curName
lastTest = After(tDoc.Name(0))
Set tDoc = tView.GetNextDocument(tDoc)
Wend
Print #1, footerStr
Close #1
【问题讨论】:
-
代理是做什么的?可以发一下代码吗?
-
另外,您的服务器的 Domino Web 引擎选项卡上的“Web 代理和 Web 服务超时”设置是什么?这与 Per Henrik 提到的设置不同。
标签: lotus-domino