Skip to content

Commit

Permalink
BatchRvtUtil: Scripts: batch_rvt_monitor_util.py: fix bug in handling…
Browse files Browse the repository at this point in the history
… Revit session initialization time-out (this time-out did not fire if the *file processing time-out* value was not set even though these time-outs are unrelated to each other).
  • Loading branch information
DanRumery committed May 18, 2019
1 parent 40c25b0 commit af85b60
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions BatchRvtUtil/Scripts/batch_rvt_monitor_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,13 @@ def monitoringAction():
output()
output("WARNING: Timed-out waiting for Revit task / file to be processed. Forcibly terminating the Revit process...")
TerminateHostRevitProcess(hostRevitProcess, output)
elif time_util.GetSecondsElapsedSinceUtc(progressRecordChangedTimeUtc[0]) > REVIT_PROCESS_BEGIN_PROCESSING_TIMEOUT_IN_SECONDS:

if currentProgressRecordNumber[0] == 0:
if time_util.GetSecondsElapsedSinceUtc(progressRecordChangedTimeUtc[0]) > REVIT_PROCESS_BEGIN_PROCESSING_TIMEOUT_IN_SECONDS:
output()
output("WARNING: Timed-out waiting for Revit script host to begin task / file processing. Forcibly terminating the Revit process...")
TerminateHostRevitProcess(hostRevitProcess, output)


if snapshotDataFilesExistTimestamp[0] is not None:
if time_util.GetSecondsElapsedSinceUtc(snapshotDataFilesExistTimestamp[0]) > REVIT_PROCESS_EXIT_TIMEOUT_IN_SECONDS:
output()
Expand Down

0 comments on commit af85b60

Please sign in to comment.