Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Haynes_FengQH
Contributor II
Contributor II

Stop task automatically, when the task is over running

I got errors as "Error Massage Failed to allocate a Qlikview Engine" and have read "Server-Task delaying".

However, some tasks run far longer than expected. Is there a way to  stop task automatically, when the task is over running(2 hours)?

Qihang_Feng_0-1649213008797.png

 

Labels (1)
3 Solutions

Accepted Solutions
Daniele_Purrone
Support
Support

Hi @Haynes_FengQH !
Possible? Yes.

By editing the QVPR, and in particular the file C:\ProgramData\QlikTech\ManagementService\QVPR\DocumentTask.xml

You'll find at the bottom a section for each task (here's an example), with the part you want to change:

<DocumentTask Name="Reload of 1.qvw" DistributionGroup="" Enabled="true" Description="" NameIsAutoGenerated="false" AllowPluginClient="true" AllowMobileClient="false" AllowZeroFootprintClient="true" AllowPDFGeneration="false" SendNotificationEmail="false" PDFReportID="" PDFReportName="" AlwaysOpenable="true" SourceDocumentID="53a641d3-cb37-ab84-940a-d7250c7034b1" ClearLocks="false" ClearAll="true" ClearAlwaysOneSelected="true" ReapplySelections="false" EnableAuditLogging="true" SetScript="Clear" SectionAccessUserName="NGhJ/4qFxes=" SectionAccessPassword="NGhJ/4qFxes=" OverrideXSSectionAccess="false" MaxOpenSessions="-1" SessionTimeout="0" DocumentTimeout="0" ReloadOption="FullReload" Distribute="false" DistributionServiceID="2dd7bbe2-e3ef-4306-9b74-0414aa83cac7" TaskTrack="None" TimeoutMinutes="1440" AjaxUrl="" NumberOfAttempts="1" ScriptParameterName="" ScriptParameterValueField="" ScriptParameterValueFilename="" NameTemplate="%SourceDocumentName%" CreationMode="All" CreatorUserNames="" DownloadAccess="None" DownloadUsers="" ExportAccess="All" ExportUsers="" VersionID="ccb925bb-9522-496b-9e16-b55a260b9ba7" EnableSessionCollaboration="false" DocumentDescription="" CloudDeploymentID="00000000-0000-0000-0000-000000000000" CloudTags="" SendCloudDoc="false" SendCloudLink="false" LastAcceptedReloadTime="" ModifiedByUser="DOMAIN\aaaa" ModifiedTime="2022-04-06T15:52:11.7877976+02:00" ID="fc407b6b-2953-4384-9fd5-803d1409a83f" />

 

So, by changing all the instances of TimeoutMinutes="1440" in the file, you'll get what you need.

Recommended? Only at your own risk. Manually editing the QVPR might result in serious problems, if something is typed incorrectly. We do take backups, though.

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.

View solution in original post

Chip_Matejowsky
Support
Support

Hi @Haynes_FengQH,

As you're receiving task failures with errors indicating failure to allocate a QVB engine, have a look at the How Many Reload Engines (QVB) to Allow in an Environment and DeskTop Heap Size sections in the Qlik whitepaper Scaling QlikView Publisher.  You may need to adjust the number of engines for concurrent reloads, increase the Windows DeskTop Heap setting, or revisit your currently scheduled tasks so that there are enough reload engines available to meet your demand.

Best Regards

Principal Technical Support Engineer with Qlik Support
Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

5 Replies
Maria_Halley
Support
Support

Haynes_FengQH
Contributor II
Contributor II
Author

Is it possible to quickly set up a large number of tasks? (for example, modify the config files)

Daniele_Purrone
Support
Support

Hi @Haynes_FengQH !
Possible? Yes.

By editing the QVPR, and in particular the file C:\ProgramData\QlikTech\ManagementService\QVPR\DocumentTask.xml

You'll find at the bottom a section for each task (here's an example), with the part you want to change:

<DocumentTask Name="Reload of 1.qvw" DistributionGroup="" Enabled="true" Description="" NameIsAutoGenerated="false" AllowPluginClient="true" AllowMobileClient="false" AllowZeroFootprintClient="true" AllowPDFGeneration="false" SendNotificationEmail="false" PDFReportID="" PDFReportName="" AlwaysOpenable="true" SourceDocumentID="53a641d3-cb37-ab84-940a-d7250c7034b1" ClearLocks="false" ClearAll="true" ClearAlwaysOneSelected="true" ReapplySelections="false" EnableAuditLogging="true" SetScript="Clear" SectionAccessUserName="NGhJ/4qFxes=" SectionAccessPassword="NGhJ/4qFxes=" OverrideXSSectionAccess="false" MaxOpenSessions="-1" SessionTimeout="0" DocumentTimeout="0" ReloadOption="FullReload" Distribute="false" DistributionServiceID="2dd7bbe2-e3ef-4306-9b74-0414aa83cac7" TaskTrack="None" TimeoutMinutes="1440" AjaxUrl="" NumberOfAttempts="1" ScriptParameterName="" ScriptParameterValueField="" ScriptParameterValueFilename="" NameTemplate="%SourceDocumentName%" CreationMode="All" CreatorUserNames="" DownloadAccess="None" DownloadUsers="" ExportAccess="All" ExportUsers="" VersionID="ccb925bb-9522-496b-9e16-b55a260b9ba7" EnableSessionCollaboration="false" DocumentDescription="" CloudDeploymentID="00000000-0000-0000-0000-000000000000" CloudTags="" SendCloudDoc="false" SendCloudLink="false" LastAcceptedReloadTime="" ModifiedByUser="DOMAIN\aaaa" ModifiedTime="2022-04-06T15:52:11.7877976+02:00" ID="fc407b6b-2953-4384-9fd5-803d1409a83f" />

 

So, by changing all the instances of TimeoutMinutes="1440" in the file, you'll get what you need.

Recommended? Only at your own risk. Manually editing the QVPR might result in serious problems, if something is typed incorrectly. We do take backups, though.

Daniele - Principal Technical Support Engineer & SaaS Support Coordinator at Qlik
If a post helps to resolve your issue, please accept it as a Solution.
Chip_Matejowsky
Support
Support

Hi @Haynes_FengQH,

As you're receiving task failures with errors indicating failure to allocate a QVB engine, have a look at the How Many Reload Engines (QVB) to Allow in an Environment and DeskTop Heap Size sections in the Qlik whitepaper Scaling QlikView Publisher.  You may need to adjust the number of engines for concurrent reloads, increase the Windows DeskTop Heap setting, or revisit your currently scheduled tasks so that there are enough reload engines available to meet your demand.

Best Regards

Principal Technical Support Engineer with Qlik Support
Help users find answers! Don't forget to mark a solution that worked for you!