Task |
public delegate void TaskCompletedHandler( bool completedButHasZombieDocumentThread, double totalElapsedSeconds, TaskRunMetrics metrics )
If this argument is true, then the DocumentTaskEngine processing task had a long running (hung) document warning and fired the LongProcessingDocumentWarning event at least once. For 'completedWithLongRunningDocument' to be true, the event handler for the LongProcessingDocumentWarning event set the boolean "prepareForAbort" reference argument to true. This allowed the running task to set the long running document record's Result to [!:ContentResult.LongRunningProcessingError] and to also then save and close the document data archive (.dda) and, optionally (if selected output mode), the text data archive (.tda), and attachment data archives (.ada) to be closed.
The task must now be manually forced aborted using AbortTask method due to long running document extractor thread (zombie) in the Completed event handler BUT not until after developer notifies any supporting infrastructure implementation (job manager, database, web service) of task's completed state, as they normally would.