You are here:
Terminate Long-Running Document Generation Requests
Use the TerminateDocGenRequestCronJob scheduled job to maintain server-side document generation performance by preventing long-running requests from affecting system efficiency.
| REQUIRED EDITIONS |
|---|
| Available in: Lightning Experience |
| Available in: Professional, Enterprise, Unlimited, and Developer Editions with Omnistudio Document Generation |
| USER PERMISSIONS NEEDED | |
|---|---|
| To run the cron job: | CLM Admin |
Prevent document generation requests from running indefinitely by turning on the time-out setting. Specify a time limit for document generation requests. Any individual or batch document generation requests that exceed the specified time limit, but are still in progress, are terminated and marked as failed. The default timeout is set to 6 hours.
- From Setup, in the Quick Find box, enter Document Generation, and then select Document Generation Settings.
- Click the dropdown next to the Docgen label, and then select Edit.
- Turn on the Enable InProgress DocGen Request Time Out setting.
- To specify the time interval (in hours) after which the long running document generation requests are terminated, enter a number in InProgress DocGen Request Time Out (hrs).
-
Click Continue.
The TerminateDocGenRequestCronJob is added to the Scheduled Jobs list.
Individual or batch document generation requests that exceed your specified time limit are terminated and marked as failed.

