Configuring job execution windows for scheduling metadata import or metadata enrichment jobs
To balance the workload, you can configure job execution windows for metadata import and metadata enrichment jobs in each project. Runs of metadata import jobs and runs of basic metadata enrichment jobs are then restricted to specific time ranges on selected days of the week.
- Required permissions
- To set up and manage job execution windows, you must have the Admin role in the project. All project collaborators can view the settings.
By default, metadata import and metadata enrichment jobs run as configured in the corresponding asset. They can run on demand, immediately after you create a metadata import or metadata enrichment, or on the specified schedule. Depending on the scope of data to be imported or enriched, and the selected metadata enrichment options, processing can be resource-intensive and take a long time to complete. Therefore, you might want metadata import or enrichment jobs to run only when the general processing load is low, such as after regular office hours or on weekends. By setting up job execution windows, you can control when metadata import or enrichment jobs are run.
With job execution windows, jobs for metadata import or enrichment run as follows:
-
Manually triggered job runs
If a run is started within any of the configured windows, the job runs as requested. Otherwise, the job run starts but is paused immediately and resumes when the next job execution window opens.
-
Job runs directly after creation of a metadata import or metadata enrichment asset
If the asset is created within the time frame of a job execution window, the job runs as expected. Otherwise, the job run starts but is paused immediately and resumes when the next job execution window opens.
-
Scheduled job runs
If the schedule aligns with the configured job execution windows, the job runs as scheduled. Otherwise, the job run starts as scheduled but is paused immediately and resumes when the next job execution window opens.
If the job is still running when a job execution window closes, the job run is paused until the next job execution window opens.
To configure job execution windows:
- Go to the Manage page in the project and select Tools > Job execution windows.
- Click Configure windows for metadata import or metadata enrichment.
- Select the days on which you want the jobs to run.
- For each selected day, set a start and end time. You can specify a time range that crosses midnight so that the window extends to the next day. In this case, you don't have to select the corresponding day explicitly.
Job execution windows apply to all metadata import or metadata enrichment jobs in a project. Changes to the window configuration are applied to new metadata imports or enrichments, and to import or enrichment jobs that run after the configuration changed.
You can update job execution windows as required. The changes are applied to jobs that are created after you updated the window configuration or to new runs of existing jobs.
If you remove all job execution windows, job runs that were paused because of configured job execution windows are automatically resumed.