Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All,
Need suggestion as one of my schedule task which takes 'Average duration of successful executions 7 hour 49 min is failing after 8 hour 19 min. error code is
24/01/2023 20:56:40 Warning The QlikView Engine is Reloading, it will be killed (Please ignore logged warnings/errors about the kill).
24/01/2023 20:56:42 Error The task "Stage 2/MIP 2015_Maker.qvw" failed. Exception: QDSMain.Exceptions.TaskFailedException: Task execution failed with errors to follow. ---> QDSMain.Exceptions.ReloadFailedException: Reload failed ---> System.Threading.ThreadAbortException: Thread was being aborted. at System.Threading.WaitHandle.WaitOneNative(SafeHandle waitableSafeHandle, UInt32 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext) at System.Threading.WaitHandle.InternalWaitOne(SafeHandle waitableSafeHandle, Int64 millisecondsTimeout, Boolean hasThreadAffinity, Boolean exitContext) at System.Threading.WaitHandle.WaitOne(Int32 millisecondsTimeout, Boolean exitContext) at SolutionGlobal.ThreadPool.ThreadPoolJob.SafeWaitEvent(WaitHandle eventWaitHandle) at QDSMain.ReloadTask.Reload(String fileName, TaskResult taskResult, String sectionAccessUserName, String sectionAccessPassword, eReloadOptions reloadOption, String variableName, String variableValue, Boolean moniterCpuUsage) --- End of inner exception stack trace --- at QDSMain.ReloadTask.Reload(String fileName, TaskResult taskResult, String sectionAccessUserName, String sectionAccessPassword, eReloadOptions reloadOption, String variableName, String variableValue, Boolean moniterCpuUsage) at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult) --- End of inner exception stack trace --- at QDSMain.DistributeTask.Execute(TaskResult currentTaskResult) at QDSMain.Task.AbstractTask.TaskExecution(ILogBucket logBucket, TaskResult taskResult)
24/01/2023 20:56:42 Error Task failed with exception
24/01/2023 20:56:42 Error Exception=The currently executing operation was aborted.
I increased the time in Time out secounds from 2880 to 30780 but still it failed. Need help!
Regards,
Rajiv Dharia
Hi @Rajiv-Dharia,
The failed task has MaxRunTime=08:33:00 configured, so if task isn't completed in 8:33:00, the task will stop. The start time of the failed task was 03:24 and the end time was 11:57. That's 8:33:00 exactly. To increase the maximum runtime of the task, edit the task in the QMC > Status > Tasks > Edit (Pencil icon) > Server tab > Performance.
Best Regards
Hi Chip_Matejowsky,
It seems this changes are successful as after the changes the Tasks able to successfully reload the data Twice. Execution time is though different in those two loads. Below is the screenshot for the same.
Regards,
Rajiv Dharia,
Application Support Analyst
QV Support
Hi @Rajiv-Dharia,
That error typically indicates that the task timed out. Can you provide the full task log?
In the task log, what is the MaxRunTime (line 7 or so)?
Where did you increase time out settings from 2880 to 30780? In the QVDistributionService.exe.config? Or some other file? Or in the QMC?
What is full build version?
What happened between when task last run successfully (11/01/2023) and when task began to consistently fail (12/01/2023)? Where changes made to the application? Was more data added?
Best Regards
Hi @Rajiv-Dharia,
Can you attach the logs to the case? The snippets you provided aren't the complete logs. Can you answer the below previously asked questions?
In the task log, what is the MaxRunTime (line 7 or so)?
Where did you increase time out settings from 2880 to 30780? In the QVDistributionService.exe.config? Or some other file? Or in the QMC?
What happened between when task last run successfully (11/01/2023) and when task began to consistently fail (12/01/2023)? Where changes made to the application? Was more data added?
Best Regards
Hi @Rajiv-Dharia,
I don't see any logs attached to your previous post. Can you please upload them? Thanks!
Best Regards
Hi @Rajiv-Dharia,
The failed task has MaxRunTime=08:33:00 configured, so if task isn't completed in 8:33:00, the task will stop. The start time of the failed task was 03:24 and the end time was 11:57. That's 8:33:00 exactly. To increase the maximum runtime of the task, edit the task in the QMC > Status > Tasks > Edit (Pencil icon) > Server tab > Performance.
Best Regards
Hi Chip_Matejowsky,
It seems this changes are successful as after the changes the Tasks able to successfully reload the data Twice. Execution time is though different in those two loads. Below is the screenshot for the same.
Regards,
Rajiv Dharia,
Application Support Analyst
QV Support
It is normal that a reload times varies. There are a lot of variables like, load on the server at the reload time, connection and response times from data sources etc.