export class PruneJobHistoryUseCase {
    deps;
    constructor(deps) {
        this.deps = deps;
    }
    async execute(input) {
        const result = await this.deps.jobHistoryGateway.deleteRecordsOutsideWindow(input.retentionDays, input.now());
        this.deps.logger.info({ deletedCount: result.deletedFilenames.length }, 'Job history pruned');
        return result;
    }
}
//# sourceMappingURL=pruneJobHistory.usecase.js.map