Job retention

Unique to a job prototype (or more accurately, any type of batch job component), is the feature of job retention—essentially a “disposal” configuration for its previously executed jobs. When a batch job is disposed, any associated files stored on the Supervisor are deleted, and that job is removed from the various job list views.

Disposal is especially important in regards to jobs with backup steps, each of which results in an associated backup .dist file to be stored for each station. Over time, retaining all such jobs can consume an excessive amount of file space on a Supervisor.

Although a Supervisor platform typically has large amounts of hard drive storage, it is common (and recommended) for it to be periodically backed up to removable media. Thus, it would be unwise to retain forever all daily (or even weekly) backups for even a modestly-sized system—that would needlessly create a huge number of backup files under the station’s provisioningNiagara directory. This is where automatic disposal via job retention configuration is useful.

By default (as copied from the provisioningNiagara palette), a job prototype component’s retention is set for all of its jobs to be permanently retained (until manually disposed). However, you can (and often should) modify a job prototype’s retention policy such that some executed jobs will be automatically disposed—depending on either the “elapsed time” or by reaching some number of job executions.

Access a job’s retention properties on either the top of its Prototype Job List view (Figure 30), or in the component’s property sheet.

Figure 30. Retention properties for NiagaraNetworkJobPrototype component


Retention properties for NiagaraNetworkJobPrototype component

The two retention properties are described as follows:

NoteKeep in mind that if you configure retention properties and then duplicate/copy the job prototype, that all copied job components will have that same retention configuration.