Endpoint Management User Group (Osterreich, Schweiz, Deutschland)

Expand all | Collapse all

Get Task Status Component: Timeout

  • 1.  Get Task Status Component: Timeout

    Posted 02-09-2015 02:00 AM

    Hi,

     

    I'm using a Workflow for importing Asset data via 'Run Connector Rule' Tasks. Now I want to use the 'Get Task Status' Component to wait for a task to complete before the workflow continues. But when I debug the project, the component is running in timeout. In the log viewer of my NS, I can see the task starting and finishing. About 2 minutes later, the workflow stops with error, and I get the messages you can see below. I'm quite a beginner with Symantec Workflow, maybe I do something wrong?

    System Info:

    SMP Version 7.5.1 HF1

    Workflow Version: 7.5.6153.0

    Error processing data row Thread was being aborted. [System.Threading.ThreadAbortException @ mscorlib] at System.Threading.Monitor.ObjWait(Boolean exitContext, Int32 millisecondsTimeout, Object obj) at System.Threading.Monitor.Wait(Object obj, Int32 millisecondsTimeout) at Altiris.GroupCommunications.Constructs.SharedCollection`1.EnsureInitialized() at Altiris.GroupCommunications.Constructs.SharedDictionary`2.ContainsKey(TKey key) at Altiris.Connector.Tasks.DataConnectorServerTask`1.TaskExecutionInstance.get_Progress() at Altiris.TaskManagement.Data.TaskStatusData.UpdateUITaskInstanceData(DataRow dr, List`1 removeRows, String NAText, String unknownText, Dictionary`2 taskVersions, Dictionary`2 taskServerNames, ISet`1 computersWithViewPermission, Dictionary`2 taskViewPermissionList) Exception logged from: at Altiris.Diagnostics.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception, String footer) at Altiris.NS.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception) at Altiris.TaskManagement.Data.TaskStatusData.UpdateUITaskInstanceData(DataRow dr, List`1 removeRows, String NAText, String unknownText, Dictionary`2 taskVersions, Dictionary`2 taskServerNames, ISet`1 computersWithViewPermission, Dictionary`2 taskViewPermissionList) at Altiris.TaskManagement.Data.TaskStatusData.UpdateUITaskInstanceData(DataTable dt) at Altiris.TaskManagement.Data.TaskStatusData.GetUITaskInstanceData(Boolean extended, AltirisGuid parentGuid, NSItemGuid taskItemGuid, TaskInstanceGuid taskInstanceGuid, JobNodeGuid jobNodeGuid, Object instanceStatus, Boolean bIncludeSchedules) at Altiris.TaskManagement.Data.TaskStatusData.GetUITaskInstanceData(AltirisGuid parentGuid, NSItemGuid taskItemGuid, TaskInstanceGuid taskInstanceGuid, JobNodeGuid jobNodeGuid, Object instanceStatus, Boolean bIncludeSchedules, Boolean bReadHierarchyTables) at Altiris.ASDK.Task.TaskStatusDetails.CreateMultipleTaskStatusDetails(Guid taskGuid) at Altiris.ASDK.Task.TaskManagement.GetTaskStatus(Guid taskGuid) at Altiris.ASDK.Task.Web.TaskManagementService.GetTaskStatus(Guid taskGuid) at System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values) at System.Web.Services.Protocols.WebServiceHandler.Invoke() at System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest() at System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context) at System.Web.Script.Services.ScriptHandlerFactory.HandlerWrapper.ProcessRequest(HttpContext context) at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) **CEDUrlStart** :http://entced.symantec.com/entt?product=SMP&version=7.5.3153.0&language=en&module=0ep7c3cPR0JQbkzT4WlK4Ua5uaioaBPwNWxf2zVk29Y/EnmAS40er+RMbRih6W6F+wLnmUzOqphmkXYnkuwE/w==&error=468062986&build=**CEDUrlEnd** ----------------------------------------------------------------------------------------------------- Date: 2/9/2015 7:46:19 AM, Tick Count: 989832677 (11.10:57:12.6770000), Host Name: SV-MS-52, Size: 4.22 KB Process: w3wp (11828), Thread ID: 8, Module: <unknown> Priority: 1, Source: Altiris.TaskManagement.Data.TaskStatusData.UpdateUITaskInstanceData File: C:\ProgramData\Symantec\SMP\Logs\ea.log
    Thread was being aborted. ( Unhandled exception. Type=System.Threading.ThreadAbortException Msg=Thread was being aborted. Src=Altiris.TaskManagement StackTrace= at Altiris.TaskManagement.Data.TaskStatusData.UpdateUITaskInstanceData(DataRow dr, List`1 removeRows, String NAText, String unknownText, Dictionary`2 taskVersions, Dictionary`2 taskServerNames, ISet`1 computersWithViewPermission, Dictionary`2 taskViewPermissionList) at Altiris.TaskManagement.Data.TaskStatusData.UpdateUITaskInstanceData(DataTable dt) at Altiris.TaskManagement.Data.TaskStatusData.GetUITaskInstanceData(Boolean extended, AltirisGuid parentGuid, NSItemGuid taskItemGuid, TaskInstanceGuid taskInstanceGuid, JobNodeGuid jobNodeGuid, Object instanceStatus, Boolean bIncludeSchedules) at Altiris.TaskManagement.Data.TaskStatusData.GetUITaskInstanceData(AltirisGuid parentGuid, NSItemGuid taskItemGuid, TaskInstanceGuid taskInstanceGuid, JobNodeGuid jobNodeGuid, Object instanceStatus, Boolean bIncludeSchedules, Boolean bReadHierarchyTables) at Altiris.ASDK.Task.TaskStatusDetails.CreateMultipleTaskStatusDetails(Guid taskGuid) at Altiris.ASDK.Task.TaskManagement.GetTaskStatus(Guid taskGuid) ) **CEDUrlStart** :http://entced.symantec.com/entt?product=SMP&version=7.5.3153.0&language=en&module=66+T9+RCgs2Jzf6H1yCL/V8jKvBRisJPvttAjyuf97vDqnyMhbhX3J685yIA/LnU&error=-981776871&build=**CEDUrlEnd** ----------------------------------------------------------------------------------------------------- Date: 2/9/2015 7:46:19 AM, Tick Count: 989832693 (11.10:57:12.6930000), Host Name: SV-MS-52, Size: 1.60 KB Process: w3wp (11828), Thread ID: 8, Module: <unknown> Priority: 1, Source: Altiris.ASDK.Task.TaskManagement.GetTaskStatus File: C:\ProgramData\Symantec\SMP\Logs\ea.log
    Unhandled exception. Request timed out. [System.Web.HttpException @ ] Exception logged from: at Altiris.Diagnostics.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception, String footer) at Altiris.NS.Logging.EventLog.ReportException(Int32 severity, String strMessage, String category, Exception exception) at Altiris.NS.UI.AltirisWebApplication.Application_Error(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.HttpApplication.RaiseOnError() at System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error) at System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) at System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) at System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr) at System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType) **CEDUrlStart** :http://entced.symantec.com/entt?product=SMP&version=7.5.3153.0&language=en&module=0wXZ+dbwnK6i5ne1iXT8/3ZC57DlFoAbEnKjDhXZCCgYKzhjjV2Plr1E+j6ZY64SXGcHSBHZmN+PKb3aVfOq4w==&error=-965416209&build=**CEDUrlEnd** ----------------------------------------------------------------------------------------------------- Date: 2/9/2015 7:46:19 AM, Tick Count: 989832771 (11.10:57:12.7710000), Host Name: SV-MS-52, Size: 1.48 KB Process: w3wp (11828), Thread ID: 8, Module: <unknown> Priority: 1, Source: Altiris.NS.UI.AltirisWebApplication.Application_Error File: C:\ProgramData\Symantec\SMP\Logs\ea.log

     



  • 2.  RE: Get Task Status Component: Timeout

    Posted 02-18-2015 07:59 PM

    You need to add something like this to your projects's web.config:

     

    <system.web>

    .

    .

    .

        <httpRuntime executionTimeout="3600" useFullyQualifiedRedirectUrl="true" />

    </system.web>

     

    This example lets your project execute for 1 hour.



  • 3.  RE: Get Task Status Component: Timeout

    Posted 07-03-2015 06:40 AM

    Quite a bit late, but here's another information to that issue:

    It seems to be not a workflow problem but something with the SMP. When running the task via console, task status cannot be updated until the task is done. This problem I experienced in SMP7.5 as well as in 7.6.

    By now I'm working with a pause in te workflow to make shure the task has enough time to run.