Set the timeframe for running background jobs
You can specify the daily timeframe when the system runs background jobs.
Background jobs recalculate the status of each request that was submitted before the upgrade to Deployment Automation 6.3.3 or later. They store the status in the database for easy retrieval, improving Deployment Automation performance in opening and processing timelines and deployment history.
Because background jobs may slow the server while they are running, we recommend that you limit them to a low or no activity time. To restrict background jobs to a specified timeframe, change the materializedViewJobsConfig settings in the server's da_config.xml file.
Tip: To view how many process requests need recalculating, navigate to Deployment > Timeline and select the calendar view for a specific month or year. The number of such requests is displayed with the Unknown status icon. For details, see View deployment timelines.
To set the timeframe for running background jobs:
Navigate to the Common Tomcat da\WEB-INF\classes directory, for example:
C:\Program Files\Micro Focus\common\tomcat\9.0\webapps\da\WEB-INF\classes
- Open the web application's da_config.xml file. This file contains your current timeframe settings.
Copy the <materializedViewJobsConfig> section from the da_config.xml file.
For example:Copy code
Navigate to the DA user profile directory where the DA server configuration is stored, for example:
Open the da_config.xml file in the DA user profile and paste the copied <materializedViewJobsConfig> section there.
Note: Deployment Automation contains two da_config.xml files, one in the web application and one in the DA user profile. After the server upgrade, the web application's da_config.xml settings are restored to default. To make your modifications permanent, you need to store them in the da_config.xml file located in the DA user profile directory.
In the <materializedViewJobsConfig> section, change the <allowedTimeframeStart> and <allowedTimeframeEnd> values to a new start and end time in a 24-hour format.
By default, the timeframe is set to a period between 19:00 and 07:00 according to your system's timezone.
- Save your changes.
- Restart Common Tomcat.
To review the background jobs status, enter the following URL in your web browser: