Skip to content

Commit 53dcdc7

Browse files
committed
add JOBRESULT_RETENTION to configuration.py
Netbox v3.2.1 introduces new enhancement to retain old script and report results for configured lifetime.
1 parent e38c1d3 commit 53dcdc7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

configuration/configuration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@ def _read_secret(secret_name, default = None):
113113
# Maximum number of days to retain logged changes. Set to 0 to retain changes indefinitely. (Default: 90)
114114
CHANGELOG_RETENTION = int(environ.get('CHANGELOG_RETENTION', 90))
115115

116+
# Maximum number of days to retain job results (scripts and reports). Set to 0 to retain job results in the database indefinitely. (Default: 90)
117+
JOBRESULT_RETENTION = int(environ.get('JOBRESULT_RETENTION', 90))
118+
116119
# API Cross-Origin Resource Sharing (CORS) settings. If CORS_ORIGIN_ALLOW_ALL is set to True, all origins will be
117120
# allowed. Otherwise, define a list of allowed origins using either CORS_ORIGIN_WHITELIST or
118121
# CORS_ORIGIN_REGEX_WHITELIST. For more information, see https://github.com/ottoyiu/django-cors-headers

0 commit comments

Comments
 (0)