Skip to content

Replace housekeeping script with system job #18349

@jeremystretch

Description

@jeremystretch

NetBox version

v4.2.1

Feature type

Change to existing functionality

Triage priority

I volunteer to perform this work (if approved)

Proposed functionality

Replace the standalone housekeeping management command with individual system jobs (introduced in NetBox v4.2) that run automatically at the configured interval.

The housekeeping command currently performs the following operations:

  • Clear any expired authentication sessions from the database
  • Delete any expired change log records (per the CHANGELOG_RETENTION parameter)
  • Delete any expired jobs (per the JOB_RETENTION parameter)
  • Check for any new releases (if configured)

Use case

This will obviate the need for administrators to manually configure system cron jobs to run the housekeeping command. It also allows for the individual housekeeping tasks (listed above) to be scheduled at different intervals.

Database changes

N/A

External dependencies

N/A

Metadata

Metadata

Assignees

Labels

complexity: mediumRequires a substantial but not unusual amount of effort to implementstatus: acceptedThis issue has been accepted for implementationtype: featureIntroduction of new functionality to the application

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions