Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace housekeeping script with system jobs #18349

Open
jeremystretch opened this issue Jan 8, 2025 · 0 comments
Open

Replace housekeeping script with system jobs #18349

jeremystretch opened this issue Jan 8, 2025 · 0 comments
Labels
status: under review Further discussion is needed to determine this issue's scope and/or implementation type: feature Introduction of new functionality to the application

Comments

@jeremystretch
Copy link
Member

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

@jeremystretch jeremystretch added type: feature Introduction of new functionality to the application status: under review Further discussion is needed to determine this issue's scope and/or implementation labels Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: under review Further discussion is needed to determine this issue's scope and/or implementation type: feature Introduction of new functionality to the application
Projects
None yet
Development

No branches or pull requests

1 participant