Set the timeframe for running background jobs

You can specify the daily timeframe when the system will run background jobs.

Deployment Automation 6.3.3 or later: 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:

  1. 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

  2. Open the web application's da_config.xml file. This file contains your current timeframe settings.
  3. Copy the <materializedViewJobsConfig> section from the da_config.xml file.

    For example:

    Copy code
    <materializedViewJobsConfig>
       <allowedTimeframeStart>19:00</allowedTimeframeStart>
       <allowedTimeframeEnd>07:00</allowedTimeframeEnd>
    </materializedViewJobsConfig>
  4. Navigate to the DA user profile directory where the DA server configuration is stored, for example:

    C:\Users\<username>\.microfocus\da\conf\server

  5. 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.

  6. 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.

  7. Save your changes.
  8. Restart Common Tomcat.

To review the background jobs status, enter the following URL in your web browser:

<serverName>:<port>/da/rest/internal/materializedViewJobsStatuses

Back to top

See also: