Class VacuumJob
Deletes generated data that has outlived its utility: un-finalised frozen query results, audit records, job runs, and any application entities listed in CustomTargets.
public class VacuumJob : ScheduledJobBase, IHostedService, IDisposable
- Inheritance
-
VacuumJob
- Implements
- Inherited Members
Remarks
Rows are deleted in pages so that large backlogs can be cleared out over time; a run stops when its time Budget is spent and resumes on the next Schedule.
Constructors
VacuumJob(JobParameters<VacuumJob>, IOptions<VacuumOptions>, IDatabase, IDMLDialect, EntityMetadataDictionary)
public VacuumJob(JobParameters<VacuumJob> parameters, IOptions<VacuumOptions> options, IDatabase database, IDMLDialect dml, EntityMetadataDictionary metadata)
Parameters
parametersJobParameters<VacuumJob>optionsIOptions<VacuumOptions>databaseIDatabasedmlIDMLDialectmetadataEntityMetadataDictionary
Methods
DescribeJobParameters()
Creates a debug view of the data on which the job is currently operating.
protected override string DescribeJobParameters()
Returns
ExecuteJobAsync(IServices, IPrincipal, IProgress<Status>, CancellationToken)
Implements the actual job logic.
protected override Task ExecuteJobAsync(IServices services, IPrincipal principal, IProgress<Status> progress, CancellationToken cancellationToken)
Parameters
servicesIServicesprincipalIPrincipalprogressIProgress<Status>cancellationTokenCancellationToken